saving changes in web.config

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am making a change programatically to web.config. That code works fine.
However when I try to save web.config i get the "Access to the path
"c:\inetpub\wwwroot\xxx\web.config" is denied. I have given permission to
the IUSR_MACHINENAME and the ASPNET acccount. I am not using impersonation
and I am running IIS 5.1.

Is there something about web.config that won't allow me to save changes
programatically?

Thanks for your help,
 
Hello Tyler,

What kind of permition did you gave? For writing?

T> I am making a change programatically to web.config. That code works
T> fine. However when I try to save web.config i get the "Access to the
T> path "c:\inetpub\wwwroot\xxx\web.config" is denied. I have given
T> permission to the IUSR_MACHINENAME and the ASPNET acccount. I am not
T> using impersonation and I am running IIS 5.1.
T>
T> Is there something about web.config that won't allow me to save
T> changes programatically?
T>
T> Thanks for your help,
T>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Thanks Michael. I am embarrassed to say that I only had read and execute
checked. I thought it was set correctly, but it was not. Thanks for your
help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top