I use Local setting to store username and password of application user.
Purpose: When user click on Remember me check, it store in local. When user restart application, it get from local setting and show.
MyApplication.Properties.Settings.Default.UserName = "john";
//get from login form
MyApplication.Properties.Settings.Default.Password = "jonh@123";
//get from login form
This is working fine if application run continuously. But If I install upgrade version of the application, it behaves incorrectly. This MyApplication.Properties.Settings.Default.UserName returns older user name.
If I again install another upgrade version, it returns any other user name that I have used before.
Can anybody suggest what I am missing here?