Will this do the trick...
Configuration configuration = ConfigurationManager.OpenExeConfiguration(
ConfigurationUserLevel.None );
AppSettingsSection section = configuration.GetSection( "appSettings" ) as
AppSettingsSection;
section.Settings.Add( "Hello", "World" );
configuration.Save();
HTH
Glenn
"rino" <ri**@discussions.microsoft.comwrote in message
news:4F**********************************@microsof t.com...
>I read that 2.0 Supports modifying the App.Config however I dont see its
true
and I still get an exception when trying to add a new key.
if(firstTime)
ConfigurationManager.AppSettings.Add("FirstName", "John");
can anyone hep with this issue. I dont want to go pure XML on this.