« Previous Next »

Thread: Give permision to folder

Last post 07-10-2009 10:41 AM by jeff@zina.com. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 07-09-2009, 2:39 PM

    • shapper
    • Top 150 Contributor
    • Joined on 11-28-2004, 9:15 PM
    • Posts 45

    Give permision to folder

    Hello,

    After uploading my application to my server I am getting an error when trying to write or delete in files:

    Exception Details: System.UnauthorizedAccessException: Access to the path 'C:\HostingSpaces\MyDomain\wwwroot\Plugins\List.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.

    I am using IIS7 and I have the IUSR account and gave it full control but I still get the same error.

    How can I solve this?

    Thanks,

    Miguel

  • 07-09-2009, 3:42 PM In reply to

    Re: Give permision to folder

    Hello,

    You should give to Network machine account modify/write permissions.

    Regards

  • 07-10-2009, 10:41 AM In reply to

    Re: Give permision to folder

    shapper:
    I am using IIS7 and I have the IUSR account and gave it full control but I still get the same error.

    Are you impersonating?  If so, it could be a logged in user or other account that needs access.  If not, it should be the ASP.NET process account, Network Service.  Try not impersonating.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
Page 1 of 1 (3 items)
Microsoft Communities