I want to write to an XML configuration file but I get an error message saying the following:
code: System.Configuration.ConfigurationSettings.AppSettings("compNameConf") = "some string value"
message: "An unhandled exception of type 'System.NotSupportedException' occurred in system.dll
Additional information: Collection is read-only."
I am reading the file ok, with this code:
string str;
str = System.Configuration.ConfigurationSettings.AppSettings("compNameConf")
How do I alleviate this problem?
Thanks
code: System.Configuration.ConfigurationSettings.AppSettings("compNameConf") = "some string value"
message: "An unhandled exception of type 'System.NotSupportedException' occurred in system.dll
Additional information: Collection is read-only."
I am reading the file ok, with this code:
string str;
str = System.Configuration.ConfigurationSettings.AppSettings("compNameConf")
How do I alleviate this problem?
Thanks
