In my winform app, I am trying to add a userSetting, although the error is occuring with appSettings too. When the setting is added I get an exeption thrown that says: \"Con
I had some user settings, then removed all of them and started seeing this exception - but only when running the app without debugging. It worked fine when debugging the app. The reason is that user-level settings are "cached" in the Local Application Data folder, and in fact are not read from the MYAPP.exe.config. So what I did was go to C:\Users\MYUSERNAME\AppData\Local\MYCOMPANY\MYAPP.exe_Url_longnastyhash9982749827349879\1.0.0.0\user.config (this is on Win7, the path depends on OS) and removed that folder (with the long hash) altogether. The exception went away. BTW, depending on how your settings are setup this user.config file may be under \AppData\Local or \AppData\Roaming.