Optimizing your ASP App Compilation

Main pages in an ASP.NET app (Master/ASPX/ASCS) are compiled with a reference to top level files. Common sense tells that you need to recompile anything if there is any change in bin assemblies or App_Code. However, this is not always the case, because not all changes have an effect on the entire application. In this article, I will give you a step by step guide on how to Optimize your ASP App Compilation1. Open your ASP project.

2. Open the web.config file of your project, and look for the compilation section:


compilation section asp

3. In the compilation section add this code:

<compilation debug=”true” strict=”false” optimizeCompilations=”true”/>

webconfig compilation optimization arvixe tutorials asp

4. Save your changes and that’s it!

Note: This optimization doesn’t affect the app domain shutdown behavior. The bin folder of you ASP application have several large DLL. When you make a build the DLL into the bin folder as a result of your module development, your whole development site will recompile (It will take from several seconds to more than a minute or so to do it). Adding this code prevents this. Only the affected files will be recompiled.

This concludes Optimizing your ASP App Compilation

Looking for quality Windows Hosting? Look no further than Arvixe Web Hosting!

Happy Hosting!

Rodolfo Hernandez

Tags: , , , , , , , , , , , , , , , , , , , , | Posted under ASP .NET 2, ASP .NET 3.5, ASP .NET 4.0 | RSS 2.0

Author Spotlight

Rodolfo Hernandez

I like photography and reading books. Currently working for Arvixe as Elgg Community Liaison. Elgg Security Expert Web Security Expert CEO of UDP SW Social Web

2 Comments on Optimizing your ASP App Compilation

  1. Rachel Smith says:

    whether this method can also be used for ASP.NET 4.5.1 or 4.5.2 ?
    Rachel Smith

Leave a Reply

Your email address will not be published. Required fields are marked *