Brendon
Brendon

Reputation: 334

Configuration system failed to initialize - Settings Designer

i have been searching on how to fix this error. I have just changed my application to use a .Settings file. I have just tried to run it in debug mode and it seems to throw and unhandled exception in the ShopSettings.Designer.cs.

enter image description here

Most of the answers to other questions talk about the Config file which every answer i have tried doesn't change anything.

enter image description here

This happens when the application is first loaded... Even so that the application can't throw an unhandled exception if i run it outside the debug mode.

Thanks in Advance, and if there is anything else that is required for an answer. Please comment and I will get back ASAP.

Update

Here is the View Details screen. (Red marks for security reasons)

enter image description here

enter image description here

All of the errors that i have when id debug to when the ServerName is first used of which is where it throws the error

Upvotes: 0

Views: 862

Answers (2)

Brendon
Brendon

Reputation: 334

I managed to fix the issue... not 100% how but what i did was change the name to ServerConfig and and it worked... The only thing is that i can only run the application in Debug mode. If anyone can figure out the reason as to how this worked then please let me know. Thanks in advance.

Here is what my app.config file now looks like (for anyone interested).

enter image description here

Upvotes: 0

Stefan Kert
Stefan Kert

Reputation: 587

The problem is your SectionGroup userSettings. If you delete this section everything should work pretty good.

You have defined to sectiongroups:

  • userSettings
  • userShopSettings

But you only have declared the information for userShopSettings.

Upvotes: 1

Related Questions