[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

ASP.NET is not authorized to access the requested resource

Posted on 2007-11-20
4
Medium Priority
?
5,145 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
3 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

831 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