RE: Web.config

From: Andy Mortimer [MS] (andmort@online.microsoft.com)
Date: 01/30/03


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



Relevant Pages

  • Re: Website dns without www?
    ... And adding a blank alias entry manually to the config file and ... Alias (CNAME) records cannot exist on the same node with another record, ... blank (same as parent folder) record should be an A record. ...
    (microsoft.public.windows.server.dns)
  • Re: Adding custom module to modules.conf
    ... sees that and tries to load the char-major-253 driver. ... and looks through the config file ... for an alias for char-major-253, ... modprobe looks for char-major-253.o, which it can obviously ...
    (comp.os.linux.development.system)
  • Re: mplayer screensize
    ... > Can I add those lines to my config file? ... i normally just set an alias in my profile. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: kernel 2.6.11 + suse 9.2
    ... I still got a kernel panic: VFS unable to mount unknown block ... I'll send you my .config file (What would be a good email ... I think the problem was to do with one of the .config settings, ... filesystems get recognised. ...
    (alt.os.linux.suse)
  • Re: Portable openssh.
    ... the old version is a subset of the features of the new version. ... replacing this by a new one or rewriting the old config file to the ... Writing a compiler for config file formats with different versions ... Not for updating. ...
    (comp.os.linux.networking)