0

I have searched everywhere and everyone says the same thing about saving to the settings.settings file but if I "save" a setting, close the application and then open it then the setting is still what it used to be.

The setting is set to scope "user"

Properties.Settings.Default.ContactPerson = value;
Properties.Settings.Default.Save();
JcMey3r
  • 181
  • 2
  • 14
  • Is this in a debug build running in VS? – Matt Burland May 22 '14 at 17:29
  • Yes, should I change it to release? – JcMey3r May 22 '14 at 17:34
  • This work for me with no issue. I'm using VS 2012. The config file is getting buried deep into `C:\Users\davidcr\AppData\Local...` The main app.config file will retain the default setting value. – David Crowell May 22 '14 at 17:41
  • 1
    @JcMey3r: What you are seeing is that if you change you application and recompile it, the framework will create a new folder for your settings and create a new set of default settings each time. It is saving it, it's just that you are not running the same application. If you look under `C:\Users\\AppData\Local\ ` you'll probably find a bunch of folders that have names like `yourapp.exe_Url_` that contain settings for different builds. – Matt Burland May 22 '14 at 17:50
  • You may find [this answer](http://stackoverflow.com/a/622813/622391) of use - it explains how to import settings from a prior version of your application – Simon MᶜKenzie May 23 '14 at 00:22

0 Answers0