"ConfigurationErrorsException" from "Settings.Default.Save()" in C# winform
Posted on 2013-12-18
I got an exception "ConfigurationErrorsException" when my program executed the statement "Settings.Default.Save()".
The details of the exception is: "Failed to save settings: An error occurred loading a configuration file: Could not find a part of the path 'C:\Users\dwong\AppData\Local\....'"
What puzzles me is that:
1. this problem happens only after I'd changed to a new hard disk (Windows 7, 32-bit).
2. this problem happens only when I run the program from the VS2008 debugger (release/debug modes).
3. this problem does *not* occur when the program is run normally (ie., after installing the program into the PC and run it directly)
Would it be a permission or security issue?
Thanks in advance.