Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ASP.NET is not authorized to access the requested resource

Posted on 2007-11-20
4
Medium Priority
?
5,138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

636 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