Hi Vishwanathan, I believe your problems may result from asp.net 'going to
sleep' after a period of inactivity (or aspnet recyling its worker process).
The same problem would also occur if you were to use the cache object.
Assuming IIS6 on W2k3, you can get around this by unchecking the option
"shut down worker process after being idle for (time in minutes)" which is
defaulted to 20 mins. (IIS-->Application Pools-->(pool for your
app)-->Properties-->Performance)
A better solution would be to check whether the object exists in cache(or
application) if it doesn't recreate it and put it back into cache(or app)
then use it.
HTH jd
"Vishwanathan Raman" wrote:
Well I am quite confused with the methods out there. I would like to
understand if Cache is the best method to store freq acessed data over
application state.Currently I have pbs with the application state that it
expires and results in error.
Vishwanathan