All of a sudden I start getting this error while trying to open 2 of some 10+ forms in my Window Forms application in designer.
To prevent possible data loss before loading the designer, the following errors must be resolved: The key 'UserID' does not exist in the appSettings configuration section.
It used to work fine and I dont' remember doing significant changes to it.
The key, of course, is in the appSettings alright, and always was, and the application builds and executes as expected. Only design view for these 2 forms is unaccessible.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Server" value="MYSERVER" />
<add key="DataBase" value="MYDB" />
<add key="UserID" value="MYUSER" />
<add key="PassWord" value="MYPASS" />
</appSettings>
</configuration>
One of them is just a Form, the other is a UserControl. None of them inherits from abstract classes or anything like that. Rebuilding or restarting Visual Studio does not help so far.
Any ideas on fixing it?