- Create Your Warmup Script Assembly
- Application Pool: Demo Website
- IIS Web Server: Configuration Editor
- Application Initialization
- Final Step: Now Run this animal
IIS 8.0 Application Initialization Setup Key Note: Restart server to effect above changes. This initialization plays important role when we have to execute any startup page automatically without users access any web pages. Sometimes warmp up fails to start because there is some setting that needs to be enabled under [code]
This warmp script will be executed at the start up of IIS app pool recylce or at time of website initialization. There can be various scenario we can embed in this start up script.Like we can have warm up script for Caching web pages or getting ready canned reports or any heavy task which takes longer time to load.For demo purpose I kept the code setup simple, to just create folder + file. Remember never have such filesystem read write operation withing website virtual directory or website directory it results in application app pool recycle everytime the filewrite operation takes place.
Check AutoStart mode=true
Check StartMode mode=AlwaysRunning
Troubleshooting 2:Worst case even if warmup script not called ,try including default web page access auto initialize.Refer screenshot.
IIS Auto Start Warm up By Scott Guthrie IIS Tech net