472,976 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,976 software developers and data experts.

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 1162
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Danny | last post by:
Hello, I was wondering if anyone knew if it was possible to make changes to an application's App.config file at runtime and then be able to access those changes immediately. The following is...
2
by: Slugsie | last post by:
I am writing a .Net web application that needs to save some state information across web pages. I'm using Session.Item("<item name>") = <item state> calls in my VB code so save the session...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
7
by: timb | last post by:
Hi, is it possible to access the properties of a class or structure in a for each statement? I want to iterate through the stirng properties in my class or structure and then write them away to...
2
by: Greg | last post by:
I am building an SVG interface (with Javascript) for client side control of some hardware. The svg will be hosted on a micro PC (http://www.picotux.com/indexe.html). It runs a uClinux OS with GCC...
6
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a...
1
by: Allie | last post by:
Hi, all. This might be a silly question... but I am very new to programming in SQL so please bear with me :) So. I'm using MS SQL Server 2005 Management Studio Express. I have a table that...
27
by: RobG | last post by:
I was investigating a function to determine whether daylight saving was being observed on a particular date (given the platform's regional settings) and came across a suggestion at merlyn.com to...
3
by: Eric | last post by:
I'm trying to manipulae my app.config file. Below is code to test that I can remove a ConfigurationSection. It looks like its working, but the app.config file is not changed when I look at it...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.