I built an app that is reading / storing appSettings like this:
Dim _config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
Dim _My_Settings = _config.AppSettings.Settings
'READING
tbServerIP.Text = _My_Settings.Item("ServerIP").Value
'STORING
_My_Settings.Item("ServerIP").Value = "127.0.0.1"
_config.Save(ConfigurationSaveMode.Modified)
This worked perfectly until I created an installer and installed the app in program files. Then I got an error when reading one (newest) config key/value. The app.config file is included with the installer and configured to sit alongside the EXE file.
To be sure that that prop value is actually missing I run the following and examined the result - the prop was truly missing.
MessageBox.Show(String.Join(",", _My_Settings.AllKeys))
So I need to find where those values are stored. But, a strange thing is happening: the app is still storing all other values BUT somewhere else, because, of course, it can't save into program files.
Where appSettings values are stored when the app is installed in program files?