Solved

ASP.NET is not authorized to access the requested resource

Posted on 2007-11-20
4
5,109 Views
Last Modified: 2009-03-18
OK...this one is totally pissing me off and I WANT the right answer cause i'm tired of seeing this one creep up from time to time.

I'm loading an xml doc.  i'm updating some innertext and then i'm trying to resave it.  Simple.  Except i keep getting this error:

Access to the path 'C:\Inetpub\wwwroot\monarchCMS\OwnerSiteSettings\CustomAppSettings.xml' is denied.

Now, obviously i know this is a permissions thing.  However I have tried changing the security settings on the folder a million times.  I added, and configured, read/write access to "local system" -- no dice.  Ditto for iuser_machine, and EVEN everyone.  I do NOT have a user called ASPNET in my list of users.  The only way this works is if i put:
 <identity impersonate="true" userName="xxx" password="xxx"/> into my web config with MY username and password for my machine.  This shouldnt be hard.  Why can't i get this to work.  I don't want to use identity impersonate
0
Comment
Question by:davidcahan
4 Comments
 
LVL 5

Expert Comment

by:KPMT-Technician
ID: 20325326
What version of OS is your web server?
XP Pro, Server 2000, Server 2003, Vista ????

I've run into a simular issue on an XP Pro machine.  If you give the group'Everyone' modify rights to the folder does it work then?

http://objectsharp.com/cs/blogs/bryan/archive/2004/06/11/626.aspx

Robert Fidler
Springfield, Missouri
0
 

Accepted Solution

by:
davidcahan earned 0 total points
ID: 20325335
No, but i did figure it out.  You have to set the permissions on the file itself.  Once i gave read/write permissions to the file for 'Everyone' it worked no problem.
0
 
LVL 1

Expert Comment

by:Vee_Mod
ID: 20555822
Closed, 125 points refunded.
Vee_Mod
Community Support Moderator
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now