Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Store Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems.

Go Back   Vista Forums > Vista technology newsgroups > Indigo

System.Configuration.ConfigurationErrorsException raised

Reply
 
Thread Tools Display Modes
Old 03-17-2008   #1 (permalink)
Stephane Guerin
Guest
 
Posts: n/a

System.Configuration.ConfigurationErrorsException raised

I've build a small sample WCF server (.exe). I'm using app.config to set it
up. When I start the application, I receive multiple first chance exception:
System.Configuration.ConfigurationErrorsException occurred
Message="This element is not currently associated with any context"
Source="System.Configuration"
BareMessage="This element is not currently associated with any context"
Line=0
StackTrace:
at System.Configuration.ConfigurationElement.get_EvaluationContext()
InnerException:

My app.config is:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service
name="Zetec.Core.MessagingService"
behaviorConfiguration="MessagingServiceBehavior">
<host>
<baseAddresses>
<add
baseAddress="http://localhost:14899/ServiceModelSamples/Service"/>
</baseAddresses>
</host>
<endpoint address="MessagingService"
binding="wsDualHttpBinding"
contract="Zetec.Core.IMessagingService" />
<endpoint
address="net.pipe://localhost/servicemodelsamples/service/MessagingService"
binding="netNamedPipeBinding"
contract="Zetec.Core.IMessagingService" />
</service>
</services>
<!--For debugging purposes set the includeExceptionDetailInFaults
attribute to true-->
<behaviors>
<serviceBehaviors>
<behavior name="MessagingServiceBehavior">
<serviceMetadata httpGetEnabled="True"/>
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>

The exception does not contain any information to help me debug this. I
have 2 questions:
- What is the error in my app.config?
- How do you debug this kind of exception? I don't have any clue where to
look for.

Thank in advance
--
Stephane Guerin

  Reply With Quote

Reply

Thread Tools
Display Modes









Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46