AppHarbor: the directory '/ App_GlobalResources /' is not allowed because the application is precompiled

I am trying to deploy an ASP.NET WebForms application in AppHarbor. After a successful deployment, I get

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

I turned off Precompilation in the application settings, but this did not help. What should I do? Should I change some parameters in my project o is this a server configuration issue?

I found a solution that removes PrecompiledApp.config, but I do not have access to it in AppHarbor.

+6
source share
2 answers

All you need to do if your site is precompiled is to make sure the / App _GlobalResources directory is removed from your deployment location.

I had the same problem, and when I deleted this directory, everything worked out very well.

NOTE. It’s good that your site has been precompiled, so it’s faster and more responsive, so it may not be practical to delete the precompiledapp.config file from your deployment folder.

+14
source

The trick is not only to disable pre-compilation in the application settings, but also to deploy a new version so that the application restarts.

0
source

All Articles