The application/web config is not in a folder that normal (non-admin) users
should have read/write access to. (ie it's with the application in Program
Files / wwwroot)
This is why the Framework only supplies read-only functionality.

You need to look into storing data in user-accessible areas (HKCU in
registry, a database, isolated storage, etc)
Remember that if you did write the code to allow updates to the app/web
config file, that it would not be user-specific anyway.

Merak

> I've been looking to see how I would go about maintaining a
> .config file using some functionality of the
> System.Configuration class, but all it seems to be able to do
> is read the web.config or app.config files and report the contents.
>
> But what if you want to retain user-configurable settings in
> a .config file (without asking the user to mess with the
> configuration file directly)?  I know it has to be do-able,
> but I can't seem to find any documents about it.
>
> Or do I have to read the .config file as an xml file into an
> XmlDocument and manipulate it that way?  It would be nice if
> there was a simpler way.

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with CSharp
August 30 - September 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to