Advertisement

04.22.2004 at 11:13PM PDT, ID: 20964588
[x]
Attachment Details

Write to XML configuration File

Asked by jakekula in Microsoft Visual Basic.Net

Tags: xml, file, write

Hi all,

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:

dim str as String

str =  System.Configuration.ConfigurationSettings.AppSettings("compNameConf")

Why can't I write to this file?

Thanks Guys...Start Free Trial
 
Loading Advertisement...
 
[+][-]04.22.2004 at 11:18PM PDT, ID: 10896740

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.22.2004 at 11:44PM PDT, ID: 10896839

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.23.2004 at 12:32AM PDT, ID: 10897011

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.23.2004 at 09:01AM PDT, ID: 10901150

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.25.2004 at 05:31PM PDT, ID: 10914502

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.26.2004 at 01:20AM PDT, ID: 10916388

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: xml, file, write
Sign Up Now!
Solution Provided By: ryancys
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.21.2004 at 03:16PM PDT, ID: 11130630

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32