November Happy Hour will be moved to Thursday December 5th.

Per Bjurström
Apr 3, 2009
  18678
(0 votes)

Optimize startup time in ASP.NET

Microsoft published a new knowledge base article on April 1st and its not a joke:

FIX: You experience very slow performance on an initial request to an ASP.NET Web site after you change the App_Code folder, the bin folder, or the Global.asax file

I installed the fix and it seem to cut down 50% of the startup time when I recompile my project. Try it out yourself and let me know if it helps.

The magic switch is optimizeCompilations=”true”.

“When it is turned on, the compilation takes a less conservative approach. If you only change the App_Code folder, the bin folder, or the Global.asax file, only the affected files are recompiled. Previously compiled pages are not recompiled.”

   1: <>compilation defaultLanguage="c#" debug="true" optimizeCompilations="true">

The Windows Vista version can be downloaded directly from here (even though the title says its for another fix).

Apr 03, 2009

Comments

Sep 21, 2010 10:32 AM

I guess this would also apply to EPiServer 4 projects?

I'm running XP, and so want to download and install it, but looks like I have to open a support case to get the fix.

/Steve

Sep 21, 2010 10:32 AM

As long as you have a .NET 2.0 project which seems to be a requirement.

You can contact Microsoft Support and ask them to mail you the fix without opening a case, I've done that with other fixes and it has not been a problem.

Sep 21, 2010 10:32 AM

I was unable to find this hotfix for Windows 7, and I'm not sure it is even applicable or neccessary. I added the attribute to my web.config, and my site still works. It is a relatively fresh windows install, so I can't say if the performance it better, but it can't hurt (I hope).



Sep 21, 2010 10:32 AM

I am running IIS on Windows Vista x64. I tried throwing the property into my web.config WITHOUT grabbing any hotfix to see what happens, and it worked! My load times improved tremendously. I can modify code in App_Code or dependent projects, and the load time of the website is very quick, less than one second compared to 7 seconds previously.
/ Tyler Collier

Sep 21, 2010 10:32 AM

Oops, I meant to say IIS 7.

And I forgot to say thanks to Per Bjurström for the tip!
/ Tyler Collier

Sep 21, 2010 10:32 AM

Cool Tyler, I guess they included it in some update then.

Please login to comment.
Latest blogs
Video Guides: Image Generation Features in Optimizely

The AI Assistant for Optimizely now integrates seamlessly with Recraft AI, providing advanced image generation capabilities directly within your...

Luc Gosso (MVP) | Dec 1, 2024 | Syndicated blog

DAM integration new major version, performance improvements and Library Picker folder selection

As you might already have seen we have decided to delist the EPiServer.CMS.WelcomeIntegration version 1.4.0 where we introduced Graph support....

Robert Svallin | Nov 29, 2024

Adding Geolocation Personalisation to Optimizely CMS with Cloudflare

Enhance your Optimizely CMS personalisation by integrating Cloudflare's geolocation headers. Learn how my Cloudflare Geo-location Criteria package...

Andy Blyth | Nov 26, 2024 | Syndicated blog

Optimizely SaaS CMS + Coveo Search Page

Short on time but need a listing feature with filters, pagination, and sorting? Create a fully functional Coveo-powered search page driven by data...

Damian Smutek | Nov 21, 2024 | Syndicated blog