P
Patrice
Hi all,
Got a strange problem.
In Application_Start, I just store the current date/time in an application
variable to keep track of the last time the application started.
To my surprise, I noticed in my error reporting log (that dumps various
things including this application variable) that sometimes this application
variable is not set.
I then added in beginrequest some code to fill the same application variable
all along with the event that set it (if not already set).
For now it looks like :
- if I update the web application (dll, web.config etc...) the global
variable shows the correct date/time set in application_start
- then the next day, the application variable generally shows today's date
and was set from beginrequest earlier in the day.
It occurs even when pages were accessed less than 20 minutes earlier the
alleged restart.
For now it would seem to me that when the application pool is
stopped/restarted by IIS or something similar, the application looses its
application variables. The variable is then set in the begin_request event.
It doesn't cause any problem as I have nothing special in this event but I
really like to undestansd what is happening...
Thanks in advance.
Got a strange problem.
In Application_Start, I just store the current date/time in an application
variable to keep track of the last time the application started.
To my surprise, I noticed in my error reporting log (that dumps various
things including this application variable) that sometimes this application
variable is not set.
I then added in beginrequest some code to fill the same application variable
all along with the event that set it (if not already set).
For now it looks like :
- if I update the web application (dll, web.config etc...) the global
variable shows the correct date/time set in application_start
- then the next day, the application variable generally shows today's date
and was set from beginrequest earlier in the day.
It occurs even when pages were accessed less than 20 minutes earlier the
alleged restart.
For now it would seem to me that when the application pool is
stopped/restarted by IIS or something similar, the application looses its
application variables. The variable is then set in the begin_request event.
It doesn't cause any problem as I have nothing special in this event but I
really like to undestansd what is happening...
Thanks in advance.