Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

app.config

1 view
Skip to first unread message

CTG

unread,
Jun 10, 2009, 2:53:09 AM6/10/09
to
I am trying to add something to my App.connfig xml file.


I try something like the following:


config = ConfigurationManager.OpenExeConfiguration
(ConfigurationUserLevel.None);
config.AppSettings.Settings.Add("This", "That");
config.Save();
ConfigurationManager.RefreshSection("appSettings");


Ok , file is updated but as soon as you leave the application ,
APp.config goes back to what it used to be before teh update ....


Does nyone know why as I m running out of ideas...


Thanks

0 new messages