How to update an value in app.config file?
<p>This is my code:</p>

<pre><code>Configuration configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
KeyValueConfigurationCollection settings = configuration.AppSettings.Settings;  
settings["IP"].Value = "10.0.0.2";
configuration.Save(ConfigurationSaveMode.Modified);
</code></pre>

<p>when I break on settings["IP"].Value line, i get the correct value.<br>
The method completes without any errors but app.config file remains unchanged. </p>
