Application State Unload

Giganews Newsgroups
Subject: Application State Unload
Posted by:  Charlie (Charl…
Date: Thu, 26 Jul 2007

I have written an ASP.Net web application in C#.
On Appplication_Start the code loads some data
from the database into memory. It stores the data
in Application State variables.
The data is read only. So far so good.

If no one uses the Application for a certain period of time
IIS unloads it from memory. If someone then access the
application the code reloads all the data again into Application
State variables.

This takes about 3 minutes to do. Where is the setting
in IIS or machine.config or app.config or web.config
that determines the time period of inactivity before
IIS unloads an application from memory?