Question

I trying to deploy my ASP.NET WebForms application to AppHarbor. After a succesful deploy I get

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

I disabled the Precompilation in the app settings but it did not help. What should I do? Should I change some settings in my project o is it a server configuration thing?

I found a solution deleting the PrecompiledApp.config but I do not have access to it on AppHarbor.

Was it helpful?

Solution

All you need to do, if your site is Precompiled, is to make sure that the directory /App_GlobalResources is deleted from your deployment location.

I had the exact same problem, and when I removed this directory it all worked very well.

NOTE: Its good to have your site precompiled so it is faster and more responsive, and therefore it may not be a good idea to remove precompiledapp.config file from your deployment folder.

OTHER TIPS

The trick is not only to disable the Precompilation in the app settings but also to deploy a new version so the app gets restarted.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top