Kevin McNeish Blog

All things iOS, Kindle and .NET

Recent Posts

Tags

News

  • First books in my new book series, "iOS App Development for Non-Programmers" are now available! iBookStore: http://itunes.apple.com/us/book/book-1-diving-in-ios-app-development/id558788074?mt=11 Amazon: http://www.amazon.com/dp/B0097N8XBE Amazon: http://www.amazon.com/dp/B0099RQGMQ

Community

Email Notifications

Archives

Fixing "Configuration System Failed to Initalize" Exception

If you see the "Configuration System Failed to Initialize" exception at run time, it is typically caused by an invalid entry in your app.config or web.config file. In my case, I encountered this exception when I had an "<add key...>" element out of place. Oddly enough, the compiler didn't warn me about this when I rebuilt my solution with the config file open (as it usually does with most other config file errors).

Best Regards,
Kevin McNeish
INETA Speaker
Microsoft .NET MVP 2002-2009
Chief Architect, MM .NET Application Framework
www.oakleafsd.com

Comments

Michel Abi Raad said:

Place a <configSections> immediately after <configuration>:

<?xml version="1.0"?>

<configuration>

 <configSections>

 </configSections>

 <appSettings>

   ...

 </appSettings>

</configuration>

# August 26, 2011 2:37 AM

zaina said:

thanks my prob is solved now

# May 23, 2012 1:52 PM
Leave a Comment

(required) 

(required) 

(optional)
 

(required) 

If you can't read this number refresh your screen
Enter the numbers above: