Hi Ray,
This is the function that does the caching:
private static System.Web.Caching.Cache objCache =
System.Web.HttpRuntime.Cache;
private static XmlDocument XMLDoc = new XmlDocument();
private static void CacheXML(string XMLFileName)
{
XMLDoc.Load(XMLFileName);
objCache.Insert("CachedSettings", XMLDoc, new
CacheDependency(XMLFileName));
}
[quoted text, click to view] "Ray Booysen" <rj_booysen_NS@rjb.za.net> wrote in message
news:uGQllBhwGHA.4944@TK2MSFTNGP02.phx.gbl...
> Changing the Dlls will cause the application domain to recycle.
> Are you sure that you are closing the file properly after reading it into
> cache?
>
> Regards
> Ray
>
>
> Carl Davis wrote:
>> Hi,
>>
>> We have an ASP.net 1.1 application which loads an XML file into cache
>> when the application starts up. However, when we overwrite some of the
>> application DLLs with new versions it appears that this cache is wiped.
>> In fact, the application seems unable to access the XML file until we
>> actually open the file in windows and save it again (no changes to file).
>> Could someone let me know what affect overwriting application DLLs should
>> have on the application itself (does it cause the app to recycle?) and
>> why does this cached file appear to be locked?
>>
>> Thank you,
>> C.