Links

Weblog

« Sitecore Database Installer for .Net 2.0 (Enhanced) | Home | IIS Admin Add-in for Visual Studio »


25 November 2005

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.jpg
(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...

 

11:51 Posted in Sitecore | Permalink

Comments

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

Posted by: Alexey Rusakov | 28 November 2005