Adding new key/value pairs to appSettings

Tech-Archive recommends: Fix windows errors by optimizing your registry



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


.



Relevant Pages

  • Re: Updater Application Block
    ... incremental updates. ... application which is nested in a folder named after the version number. ... The "real" app contains the code to launch the updater. ... added a parameter to the AppStart config file called "previousVersion." ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: .Net 2.0 compatability with 1.1
    ... the application folder? ... To force your app to run under .NET 2.0, create a config file, ... .NET Native Compiler for best startup time and best protection agianst ...
    (microsoft.public.dotnet.framework)
  • Configuration file issue
    ... folder. ... How can make my app run under VISTA? ... Can I move the config file under ...
    (microsoft.public.dotnet.general)
  • Re: Configuration file issue
    ... Add a Manifest to your app. ... Settings\All Users\Application Data\MyApplication" folder rather install ... Can I move the config file under ...
    (microsoft.public.dotnet.general)
  • Re: Assigning drive letters to a folder
    ... Don't copy the config file? ... | How do I assign a drive letter to a folder? ... | On the desktop machine the app is installed in its own folder (call ... | and \data folders between the machines. ...
    (microsoft.public.windowsxp.configuration_manage)