Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - System.Configuration.ConfigurationErrorsException raised

 
 
Old 03-17-2008   #1 (permalink)
Stephane Guerin


 
 

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


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
System Configuration Question Vista General
System Configuration Problem Vista General
System Configuration / Startup General Discussion
New System Configuration Vista hardware & devices


Vista Forums 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 Ltd

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