Posted on: 7/30/2015 4:59:40 PM | Views : 1121

I have a MVC application and for one of my methods I need to scrape another file server's folders for a file list.  This works on my developing machine but when I transferred it to the webserver I get the following:
Access to the path '{path}' 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 '{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. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on ...

Go to the complete details ...