Reputation: 21
After many tries of trying to fix this error message, I still cannot manage to fix it and it only appears when I try to add a property to Settings.settings:
An error occurred when saving values to the app.config file. The file might be corrupted or contain invalid XML.
Yes, I have looked for a fix online already but I haven't found a solution because I haven't even messed with my app.config file whatsoever. Here is my app.config file code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>
Upvotes: 2
Views: 2225
Reputation: 1697
Open the App.config
and try one of the following:
App.config
file from another similar application and manually add your settingsUpvotes: 1