RE: Web.config
From: Andy Mortimer [MS] (andmort@online.microsoft.com)
Date: 01/30/03
- Next message: Mary Chipman: "Re: I can't login to Sql no matter what i try! i'm ignorant and i need help :)"
- Previous message: Paul Lyons: "Access Denied on dynamically loaded assembly"
- In reply to: Vince: "Web.config"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: andmort@online.microsoft.com (Andy Mortimer [MS]) Date: Thu, 30 Jan 2003 14:44:59 GMT
>From a previous answer by Ricard Grimes, whom you may have heard of:-
You can use the System::Xml classes to write to config files, assuming you
have write access. However there are issues: if you open machine.config for
write access what about other users? IMO it is a bad idea to
programmatically write to machine.config. It is possible to write to an
application config file, but if you changte an existing value (as opposed
to adding a new config file section) these values will not be reflected in
the current configuration, so if your code calls
ConfigurationSettings::GetConfig() you'll not see the changes. This means
that writing to the file is only good for updating the file for the next
run of the application. (This is especially relevant for config settings
read by the runtime.)
Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only
- Next message: Mary Chipman: "Re: I can't login to Sql no matter what i try! i'm ignorant and i need help :)"
- Previous message: Paul Lyons: "Access Denied on dynamically loaded assembly"
- In reply to: Vince: "Web.config"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|