Adding new key/value pairs to appSettings
- From: "Mark Rae" <mark@xxxxxxxxxxxxxxxxx>
- Date: Sat, 7 Apr 2007 02:51:01 +0100
Hi,
Apologies if this is a stupid question, but it's late...
I have a C# 2 WinForms project called RTES, and I'm trying to add new
key/value pairs to the appSettings section of its config file. I'm using the
code here:
http://www.codeproject.com/useritems/SystemConfiguration.asp?msg=1971660 as
an example.
The folder \RTES\bin\debug folder contains the following files:
RTES.exe
RTES.exe.config
RTES.pdb
RTES.vshost.exe
RTES.vshost.exe.config
When I run the app in debug mode, RTES.vshost.exe.config gets updated with
the new key/value pair - RTES.exe.config doesn't...
However, as soon as I exit the app, RTES.vshost.exe.config reverts to the
way it was...
Is this normal?
Is it not possible to use the AppSettings.Settings.Add(...) method to add
new key/value pairs permanently...?
Any assistance gratefully received.
Mark
.
- Follow-Ups:
- Re: Adding new key/value pairs to appSettings
- From: Mark Rae
- Re: Adding new key/value pairs to appSettings
- Prev by Date: Re: Downloading unix \n text files, convert to \r\n non-unix?
- Next by Date: Reading network socket stream, slow connection
- Previous by thread: Re: Free Online CSharp 2 Windows Course
- Next by thread: Re: Adding new key/value pairs to appSettings
- Index(es):
Relevant Pages
|