The directory App_GlobalResources is not allowed because the application is precompiled

Problem

You get this error when running your application:

Server Error in ‘XXX’ Application.

The directory '/XXX/App_GlobalResources/' is not allowed because the application is precompiled.

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: The directory '/XXX/App_GlobalResources/' is not allowed because the application is precompiled.

This error can occur when running an application deployed and installed by the MSI Deployment Installer.  The MSI Deployment Installer creates a PrecompiledApp.config file that causes this error at run-time.

Solution

Delete the PrecompiledApp.config file and re-start your application.

See Also

Part IX:  Troubleshooting Applications

Application Will Not Run

Application Runs But No Data is Displayed

Application Error Messages