Click to See Complete Forum and Search --> : Where are my application settings?


MikeB
February 27th, 2009, 12:28 PM
Ok, I have a dll that I have added Settings.settings to. All values are blank by default and need to be specified the first time it is used. I started my application, entered a couple of settings and saved them using:


Settings.Default.MaestroLogin = this.MaestroLogin;
Settings.Default.MaestroPassword = this.MaestroPassword;
Settings.Default.Save();
this.IsModified = false;


The next time I start my application, the values I entered are there but I cannot find where they are being saved. I thought they would be saved in my "My.dll.config" xml file, but they aren't.

Where would these settings be stored ? Any ideas?

Mike B

MikeB
February 27th, 2009, 12:54 PM
Ok, I found them, they are saved in the local settings directory which is great. Does anyone know of a way to encrypt this file? I have some passwords saved in the settings and I need to encrypt it.

Mike B

Shuja Ali
February 27th, 2009, 01:07 PM
This might be helpful
http://www.codeproject.com/KB/security/encryptstrings.aspx