I've got a classical ASP website in which I store some information inside the Application object. These variables seems to disappear every now and then. I am wondering what could be wrong. Any ideas?
+3
A:
The application probably got restarted in the meantime, and their is now way to prevent that, you should probably check your web application lifecycle. what version of IIS are you running ?
dvhh
2010-10-25 07:22:58
Microsoft-IIS/6.0. The server almost always remain up. The particular website is less frequently used, say 8 hours everyday then not accessed for the next 16 hours.
Salman A
2010-10-25 07:47:50
read this article about application pool that might help you understand the issue : http://blogs.msdn.com/b/david.wang/archive/2006/02/07/asp-startup-shutdown-anomalies-on-iis6.aspx
dvhh
2010-10-25 09:09:42
default setting application recycle every 29h
dvhh
2010-10-25 09:11:02
As dvhh states your application will get recycled at regular intervals by default, if you store things in your Application object that need to persist then you need to add logic to your code to save/load the values when appropriate
RobV
2010-10-25 10:24:39