Hi, I got the following message when trying to create or delete a directory. Code: if (!Directory.Exists(photoPath)) { Directory.CreateDirectory(photoPath); } Error: Exception Details: System.UnauthorizedAccessException: Access to the path '<directory 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. What do I need to do so creating/deleting a directory is allowed? Thanks, sclc
Try enabling 'Full' trust: http://support.Winhost.com/KB/a657/changing-the-default-aspnet-trust-level.aspx
Sounds like your ACL permissions got misconfigured. Contact Support and ask them to check / reset your ACL permissions. Also, please read our knowledge base article on how to prevent this from happening again: ACL was altered after using VS web deploy