Server cannot access application directory...

Problem

You get this error in running your application:

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.Web.HttpException: Server cannot access application directory ‘XXX’. The directory does not exist or is not accessible because of security settings.

This occurs when the Microsoft IIS web server cannot access your application folder in order to run your application.

Solution

See ASP.NET User Does Not Have Permissions to Your Application Folder for details.

See Also

Part VII:  Troubleshooting Applications

Application Will Not Run

Application Runs But No Data is Displayed

Application Error Messages