Zulfiqar's weblog

Architecture, security & random .Net

ConfigurationErrorsException: This element is not currently associated with any context

Posted by zamd on April 6, 2008


Sometimes when debugging WCF code you might get this strange exception. In normal situations this exception is handled by WCF api and never reaches your code. If however if you have configured VS to report exception as they are thrown, WCF api never gets the chance to deal this exception. 

A simple fix is to uncheck the setting for “break when an exception is thrown”. 

On Debug menu, select Exceptions… & uncheck the circled option. 

Advertisements

One Response to “ConfigurationErrorsException: This element is not currently associated with any context”

  1. Unknown said

    Thanks for the tip ! It saved me lots of time ! 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: