简体   繁体   中英

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 .

在此处输入图片说明

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

在此处输入图片说明

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)

在此处输入图片说明

在此处输入图片说明

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

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.

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).

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM