Why Precompile???

May 28, 2007 at 7:39 am 2 comments

The advantages of precompiling a web application is that
1. It ensures faster page-load and
2. provides more security to the code.
Here are few articles which will help in understanding precompilation better and also how to precompile an ASP.NET2.0 web application…
http://articles.techrepublic.com.com/5100-3513-6116804.html
http://www.beansoftware.com/ASP.NET-Tutorials/Deploy-ASP.NET.aspx
http://aspalliance.com/717
msdn link
quote – “The primary disadvantages of deployment pre-compilation are that you have to perform these steps prior to deployment and that you can’t change your Website after it has been deployed. If you want to make changes, you have to recompile the Website and redeploy it”
(How to precompile)
Also chk out this article by Rick Starhl titled – “Watch out with precompiled ASP.NET 2.0 Applications if you have Orcas installed http://west-wind.com/WebLog/posts/73663.aspx
Advertisements

Entry filed under: .net 2.0, asp.net, asp.net2.0, Visual Studio, WebApplication.

Invalid cast from ‘System.String’ to ‘System.TimeSpan…. Localization – part 2

2 Comments Add your own

  • 1. Debasish Pramanik  |  November 14, 2007 at 4:49 am

    Hi Arti:

    This is really interesting one as currently I have a similar situation out here. Here the app is a web application(Web Site Model ), and maintainence is a support is a major factor as the system is newly developed so developer made a choice deploy everything as it is without any compilation. The problem was if there is a bug fix they have to recompile and the entire website which basically means test the entire stuff which is a huge effort. One of the thing which I came across is Single Page Assembly depolyment. This model compiles every page as a separate assembly. The option is available when you publish the website.

    Regards,
    Debasish Pramanik
    http://debasishpramanik.wordpress.com

  • 2. Joe  |  August 4, 2010 at 3:47 pm

    Why would you ever want to precompile?

    If your application is precompiled how can you ever be sure what is in the application? Let’s say I precompile my app and then – three weeks later I want to make changes. How do I know that what I have in development matches what is in production? What if I only want to make a change to one page – without deploying all of my changes? But there is absolutely NO way of comparing exactly what is in production to what is in any other environment. Also if I want to backfill a dev environment with what is in production (an EXACT copy) I cannot because it’s compiled!

    When my code is NOT precompiled I know without a doubt that what I see is what I get. And I can backfill it into any other environment at any time and I KNOW it matches 100%.

    If you are worried about changes being made to production…there are other methods of security to deal with that.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


May 2007
M T W T F S S
« Apr   Jun »
 123456
78910111213
14151617181920
21222324252627
28293031  

%d bloggers like this: