ASP.NET permissions.

Last post 10-10-2006, 12:23 PM by pgymjp. 2 replies.
Sort Posts: Previous Next
  •  10-09-2006, 4:58 PM 23428

    ASP.NET permissions.

    Hey all,
     
    I've read the posts on granting ASP.NET rights to write to a file. However, I'm still at a standstill. I'm working with the editHtml.aspx example (vb flavor) and when I try to save my edits with the editor I get:
     
    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 "E:\web\users\mnmaao.org\frustrated\vb\document.htm" 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.
      
     
    Before I get flamed, I've done my homework. I have no idea what's wrong. Permissions to "E:\web\users...document.htm" are WIDE OPEN. ASP.NET has full control and I'm still getting this.
     
    For those who reply (thank you in advance), please be aware that I need baby steps on how to fix this. No assumptions can be made because I'm a vendor without Admin rights on this W2k3 Server. The steps you give me will be given to the sys admin. That's why I'm requesting step-by-step instruction on how to give ASP.NET what it needs.
  •  10-09-2006, 5:14 PM 23429 in reply to 23428

    Re: ASP.NET permissions.

    pgymjp,
     
    Try steps below:
     
    1. Start Windows Explorer (not the IIS Manager) and find the the directory which contains the above html file.
     
    2. Select the directory, right-click it and click on Properties. Select the Security tab.
     
    3. You now need to add a new set of permissions for user name: ASPNET or NetWork Service account (if you are using windows 2003.) on Add... in the Security tab and enter ASPNET in the following box, then press OK.
     
    4. Still in the Security tab, select ASPNET or NetWork Service account in turn and check the "Write" permission box in the "Allow" column.
     
    Does it help?
     
    Keep me posted
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-10-2006, 12:23 PM 23457 in reply to 23428

    Re: ASP.NET permissions.

    I found what I think was wrong. Thanks for the help though!!
View as RSS news feed in XML