Solved

ASP.NET is not authorized to access the requested resource

Posted on 2007-11-20
4
5,115 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 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