Does any one know Why and When the .Net Runtime Throws the "Cache Not
Available" Exception Message. The Code Snppet That Causes the Problem is as
follows.
The Code..
internal class EnvUtil :System.Web.UI.Page
{
//private string m_sResetClientId;
internal EnvUtil()
{
}
internal string ResetClientID
{
get
{
string sResetClientId="";
try
{
if (Cache["ResetClientDoc"]
== null)
{
TextReader xt=new
StreamReader(Server.MapPath(@"../../Content/EnvReport/ResetClientID.xml"));
sResetClientId=xt.ReadToEnd();
xt.Close();
CacheDependency dep
= new
CacheDependency(Server.MapPath(@"../../Content/EnvReport/ResetClientID.xml"),
DateTime.Now);
Cache.Insert("ResetClientDoc", sResetClientId, dep);
}
else
{
sResetClientId=(string) Cache["ResetClientDoc"];
}
}
catch (Exception ex)
{
Debug.WriteLine(ex.Message);
}
return sResetClientId;
}
}
}
}
======================
Output
?ex.Message
"Cache is not available"
=======================
Alvin Bruney [MVP - ASP.NET] - 05 May 2005 03:01 GMT
does it always throw this exception or randomly

Signature
Regards,
Alvin Bruney - ASP.NET MVP
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
> Does any one know Why and When the .Net Runtime Throws the "Cache Not
> Available" Exception Message. The Code Snppet That Causes the Problem is
[quoted text clipped - 58 lines]
> "Cache is not available"
> =======================