VS2008 QFE Debugging on a WCF application

I got all excited today and downloaded and instaled VS2008 QFE (.net source code) and enabled debugging according to Shawn Burke’s blog and fired up a WCF server application I’m working on. The server is using the ServerHost class for hosting it. Much to my surprise I kept getting an ConfigurationErrorsException with the message : “This element is not currently associated with any context”. The application hadn’t changed for a couple of days and I have no configuration file as I define everything programmatically. The only thing I had done was to install QFE and enable Debugging.

Turns out that the “Enable just my code” option that I turned off to enable QFE debugging caused this. I haven’t really bothered to figure out why yet, just thought I’d blog the incident straight away.

2 thoughts on “VS2008 QFE Debugging on a WCF application

  1. Ross Dickinson says:

    THANK YOU for this! It was driving me insane trying to figure out why my project suddenly started throwing this error!

  2. No problem, glad it was of assistance.

Leave a Reply

Your email address will not be published. Required fields are marked *