web 2.1

Remove PrecompiledApp.config

The Sitecore 5.2.0.1 package contains a file called PrecompiledApp.config, located in the root-folder. Because of this little nasty bugger, you receive this Server Error if you try to add your own class to the solution:

 

Server Error in '/' Application.


The directory '/App_Code/' 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.

medium_app_data_error
(Click image to zoom)


I tried all sorts of things to fix it, but ended up contacting Runi from Sitecore. He replied that I should hust remove the PrecompiledApp.config file - and voila! it worked...

Tags:

Categories: .net | Sitecore

Comments

Alexey Rusakov Ukraine, on 11/28/2005 10:05:48 AM Said:

Alexey Rusakov

You can even precompile/publish the entire site if you also remove unhandledexception.aspx - this however leads to a number of small glitches connected with asp.net 2.0 precompilation.

In place compilation seems to work ok though, this is how I develop a 5.2.0.1 site at the moment. This is still an early beta

Comments are closed