Zulfiqar's weblog

Architecture, security & random .Net

Archive for April, 2008

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. 

Posted in .net | 1 Comment »