Caching & IIS 6.0
Hi Everyone,
Our web application (ASP.Net 2.0) uses caching, is currently hosted on a Windows XP Machine with IIS 5.1.
But when we try to host the same application in Windows 2003 Server and IIS 6.0 environment caching fails.
Could you please suggest a solution to meet this issue ?
Is there any specific IIS 6.0 settings to be taken care to make this work ?
Here is the code, how do we add/update item (a datatable) to cache:
if (Cache[oAccount._sAccount + "ServiceCaseDt"] == null)
{
Cache.Insert(oAccount._sAccount + "ServiceCaseDt", dtCases, null, DateTime.MaxValue, TimeSpan.Zero);
}
Else
{
Cache[oAccount._sAccount + "ServiceCaseDt"] = dtCases;
}
dtCases is a datatable.
Waiting for your most valuable suggestions,
Thanks & Regards,
Xave
|