Thursday, October 16, 2014

Speed up ASP.NET/MVC website loading with IIS tweaks

ASP.NET/MVC websites hosted on a dedicated hosting face problems while loading the website at the start of the day.  It usually takes a while to load it for the first time and then every subsequent requests are returned pretty quickly.  To resolve this issue, you need to make few configurations in IIS:

  1. In application pool advanced settings set Start Mode = AlwaysRunning
  2. In site advanced settings set Preload Enabled = True and Start Automatically = True