470,849 Members | 1,089 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

saving changes in web.config

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,
--
Tyler
Jun 5 '06 #1
2 1088
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 Nietzsche
Jun 5 '06 #2
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.
--
Tyler
"Michael Nemtsev" wrote:
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 Nietzsche

Jun 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Slugsie | last post: by
7 posts views Thread by timb | last post: by
2 posts views Thread by Greg | last post: by
6 posts views Thread by Jeff | last post: by
1 post views Thread by Allie | last post: by
27 posts views Thread by RobG | last post: by
3 posts views Thread by Eric | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.