A: IIS uses something called Just In Time (JIT) compilation, which compiles ASP.NET pages as they're accessed the first time. Then this compilation is cached in the AppPool, so subsequent accesses are fast. If a site isn't accessed for a long time, this cached compilation is recycled, freeing up resources. But this means that the next access requires compilation again. You can change the settings so the recycling doesn't occur:
- Start the Internet Information Services (IIS) Manager.
, Application Pools.
- Right-click the application pool for the site you want to change. Select Advanced Settings.
- Change both the Idle Time-out (minutes) entry under Process Model and the Regular Time Interval (minutes) under Recycling to 0 and click OK.
- You can now right-click the pool and select Recycle to force a recycle using the new values.
- Access the site in a browser to force the initial compilation, which will no longer be recycled, thanks to your new settings.