G
Guest
I want to edit a web.confgi file Programmaticaly. I can´t use the
System.Configuration.ConfigurationSettings.AppSettings.Add
becuase the web.config file i want to edit does belongs to another web site.
I have no problems open the web.config-file as stream or XMLDocument.Load,
but as sone as I try to save web.config it says "cannot save.. because the
file is used by another process" or something like that. I guess that the IIS
is "holding" the file.
Though when you open web.config in Notepad and save it works fine.
What´s the difference between the two way?
Regards Erik Juhlin
System.Configuration.ConfigurationSettings.AppSettings.Add
becuase the web.config file i want to edit does belongs to another web site.
I have no problems open the web.config-file as stream or XMLDocument.Load,
but as sone as I try to save web.config it says "cannot save.. because the
file is used by another process" or something like that. I guess that the IIS
is "holding" the file.
Though when you open web.config in Notepad and save it works fine.
What´s the difference between the two way?
Regards Erik Juhlin