This is my code:
Configuration configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); KeyValueConfigurationCollection settin
This code should work:
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); config.AppSettings.Settings["IP"].Value = "10.0.0.2"; config.Save(ConfigurationSaveMode.Modified); ConfigurationManager.RefreshSection("appSettings");