This project has moved and is read-only. For the latest updates, please go here.

How to deal with ConfigurationErrorsException was unhandled

Oct 21, 2011 at 12:50 AM
Edited Oct 21, 2011 at 12:50 AM

Downloaded the latest source code. After building Samples and trying to run them in Visual Studio 2010 and I get configuration exception when bootstrapper.Run() is called:

System.Configuration.ConfigurationErrorsException was unhandled  Message=An error occurred creating the configuration section handler for modules:

Request failed. (C:\Users\me\Documents\Visual Studio 2010\Projects\ExtendedWPFToolkitSolution\Src\Samples\Samples\bin\Debug\Samples.vshost.exe.Config line 7) 


When running in Explorer the main frame appears briefly and then program crashes.

I am administrator on my box and I must admit that figuring out .NET security-related exceptions (like this one appears to be, inner exceptions mention the need for full trust) is not my forte.

Oct 21, 2011 at 2:42 PM

When you downloaded the source code zip file, did you right-click the zip file -> click properties -> then unblock the files?

Oct 21, 2011 at 4:54 PM

That was it. Much appreciated!