Caching / Application_Start ASP.NET

Nov 28, 2008 at 3:50 PM
I have an ASP.NET application, on the application start event of the global.asax file I start a timer that runs once daily. When the timer fires, it loads data into the cache, using (CacheManager)CacheFactory.GetCacheManager().
The web site is hosted in IIS6.0 and runs under an application pool that recycles once daily. Idle Timeout (shut down worker process if idle for more than x minutes) is disabled.
It appears that when the site is inactive for a period of time (i.e. all sessions have timed out), the Application_Start event is called again on the next request?!!!!

How can I stop the application_start event from being called like this? ...or is my only option to store the cache to file / database?

Dec 2, 2008 at 10:59 AM

This seems to be the same situation as yours, See this link:

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.