Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Access to path denied

Reply
Thread Tools

Access to path denied

 
 
Bryan
Guest
Posts: n/a
 
      05-18-2004
I have a question. I am running Windows 2003 Server with Framework
1.1. I have an application that has XML config files within it that
drive part of the application. I wrote another "admin" application
that allows me to configure these XML files in the main applicaiton.
Both of the sites are sitting on the same server under the same
website but in different directories. I have give everying in the root
web directore the MACHINENAME\ASPNET full access. When I try to
access/change the xml file in the main application from the admin
application I get the following error:

-------------------------------------------------------
Access to the path "D:\Web\MainApplication\MyConfig.xml" is denied.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the
path "D:\Web\MainApplication\MyConfig.xml" is denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request
identity. ASP.NET has a base process identity (typically
{MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if
the application is not impersonating. If the application is
impersonating via <identity impersonate="true"/>, the identity will be
the anonymous user (typically IUSR_MACHINENAME) or the authenticated
request user.

To grant ASP.NET write access to a file, right-click the file in
Explorer, choose "Properties" and select the Security tab. Click "Add"
to add the appropriate user or group. Highlight the ASP.NET account,
and check the boxes for the desired access.
-------------------------------------------------------

Does anyone have anything that I can try?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very annoying error: Access to the path is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity Jay ASP .Net 2 08-20-2007 07:38 PM
403 Forbidden: You were denied access because: Access denied by access control list Southern Kiwi NZ Computing 6 03-19-2006 05:19 AM
"Access to the path <path> is denied" but it shouldn't be. Kent Tegels ASP .Net Security 0 08-26-2004 04:43 PM
Access to the path is denied Theerachet Pratoommanee ASP .Net 1 12-30-2003 09:03 AM
Access to the path ...\\dynamic_images is denied. What Happens??? cg ASP .Net 0 07-02-2003 07:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57