spaceplanner
asked on
Access to the path is denied
I have installed an ASP.NET application on my laptop that is running Windows XP Professional.
When I try to open the app I get the error message below.
I have granted access to anonymous users.
The solution mentioned, "To grant ASP.NET 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 not work for me because in XP Pro there is no Security tab on the Propertis dialog box of the folder.
How do I resolve this problem?
Error details:
Server Error in '/iDesk' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Access to the path 'c:\inetpub\wwwroot\iDesk\ Log\ErrorL og2006-5-2 3.txt' 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.UnauthorizedAccessE xception: Access to the path 'c:\inetpub\wwwroot\iDesk\ Log\ErrorL og2006-5-2 3.txt' 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 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.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[UnauthorizedAccessExcepti on: Access to the path 'c:\inetpub\wwwroot\iDesk\ Log\ErrorL og2006-5-2 3.txt' is denied.]
System.IO.__Error.WinIOErr or(Int32 errorCode, String maybeFullPath) +2014563
System.IO.FileStream.Init( String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +998
System.IO.FileStream..ctor (String path, FileMode mode, FileAccess access) +57
iDesk.clsCommon.WriteErrTo Log(String LogData) +385
iDesk.clsCommon.ExecuteQue ry(String QueryString) +344
iDesk._Default.FillArenaCo mboBox() +62
iDesk._Default.Page_Load(O bject sender, EventArgs e) +64
System.Web.UI.Control.OnLo ad(EventAr gs e) +99
System.Web.UI.Control.Load Recursive( ) +47
System.Web.UI.Page.Process RequestMai n(Boolean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt) +1061
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
When I try to open the app I get the error message below.
I have granted access to anonymous users.
The solution mentioned, "To grant ASP.NET 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 not work for me because in XP Pro there is no Security tab on the Propertis dialog box of the folder.
How do I resolve this problem?
Error details:
Server Error in '/iDesk' Application.
--------------------------
Access to the path 'c:\inetpub\wwwroot\iDesk\
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.UnauthorizedAccessE
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 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.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[UnauthorizedAccessExcepti
System.IO.__Error.WinIOErr
System.IO.FileStream.Init(
System.IO.FileStream..ctor
iDesk.clsCommon.WriteErrTo
iDesk.clsCommon.ExecuteQue
iDesk._Default.FillArenaCo
iDesk._Default.Page_Load(O
System.Web.UI.Control.OnLo
System.Web.UI.Control.Load
System.Web.UI.Page.Process
--------------------------
ASKER
Hi Maddog,
I have checked the folder and it is Read Only. I uncheck the attribute, Apply, OK. Then when I go back in it is chaecked again. How can I force Windows to accept the change?
I have checked the folder and it is Read Only. I uncheck the attribute, Apply, OK. Then when I go back in it is chaecked again. How can I force Windows to accept the change?
spaceplanner,
Does the "Read-Only" checkbox has a greyish background?
That means it is not really read-only.
Have you tried adding permissions to the directory?
Does the "Read-Only" checkbox has a greyish background?
That means it is not really read-only.
Have you tried adding permissions to the directory?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Maddog,
Not sure how to 'add permissions to the directory'
the config file has <identity impersonate="true"/>
I have allowed anonymous access on all folders
I have shared all folders with Read Write access
what else should I do?
thanks for your help
Paul
Not sure how to 'add permissions to the directory'
the config file has <identity impersonate="true"/>
I have allowed anonymous access on all folders
I have shared all folders with Read Write access
what else should I do?
thanks for your help
Paul
ASKER
I do have NTFS file system and once I disabled the Simple file share I was able to share with everyone
thanks for all your help
Paul
thanks for all your help
Paul
Grant Read & Write permission on the directory (c:\inetpub\wwwroot\iDesk\
- Maddog