In my .net dll I cached an object using the httpcontext object.
I refresh the page and this time around the cash is unavailable.
The code is as follows for storing in cache:
Dim objHttpContext As HttpContext = HttpContext.Current()
objHttpContext.Cache.Insert(strCacheName, docStyle, _
New CacheDependency
(objHttpContext.Server.MapPath("strXSLName")))
Retrieving the cache is as follows:
docStyle = objHttpContext.Cache.Get(strCacheName)
If docStyle Is Nothing Then ...
docStyle shows as nothing.
Any help would be appreciated.
Thanks.