Take advantage of Pre-compile option in ASP.NET 2.0

In ASP.NET 1.X, we need to manually batch compile each folder to avoid initially delay of the page load!!

 

But in ASP.NET 2.0, the compilation process has been automated using special handler called “Precompile.axd” file.

 

For example if the website name is “ASPNETWeb”, then we can pre-compile it simply by typing http://<servername>/ASPNETWeb/Precompile.axd on the web browser!

 

That’s it, by doing that step the site is going to be compiled for us! From next request onwards pages will come without any initial delay J
Haa... Life is good with 2.0!!

 

Also please be sure to check aspnet_compiler.exe compile options! It has some really cool new features!

Published Sunday, December 05, 2004 12:01 PM by SreedharK

Comments

# re: Take advantage of Pre-compile option in ASP.NET 2.0

Sunday, December 05, 2004 2:59 PM by Gilles
aspnet_compiler is one step in the right direction. However, it does not allow you to control the name of the generated assemblies. You end up with a bunch of randomly nmed assemblies which means that it is very hard for your to build an MSI setup out of it.

If you want to run FxCop, you also need to keep on adding/removing assemblies from the project after every build because names change after every compilation.

# re: Take advantage of Pre-compile option in ASP.NET 2.0

Sunday, December 05, 2004 5:10 PM by Sreedhar Koganti
Yes, I too seen it, that's why I haven't given much info on it, I left it to readers!

That's why Precompile.axd is my favorate!!

But it's atleast better than ASP.NET 1.X :)

# re:Take advantage of Pre-compile option in ASP.NET 2.0

Sunday, April 10, 2005 6:55 AM by TrackBack
^_^,Pretty Good!

# re:Take advantage of Pre-compile option in ASP.NET 2.0

Sunday, April 17, 2005 4:37 AM by TrackBack
^_~,pretty good!

Leave a Comment

(required) 
(required) 
(optional)
(required)