I am unable to save modification of ' app.config ' file.
Here is the code.
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
config.AppSettings.Settings["MDI"].Value= "1";
config.Save( ConfigurationSaveMode.Full );
ConfigurationManager.RefreshSection("appSettings");
There is no issue of reading app.config file. I am reading proper values .But if changed it ,it is not updating the file.
And I have also changed order of RefreshSection() and Save() function but hopeless.
Can anyone help to resolve this issue?