473,486 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Losing Cached values

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.
Aug 17 '06 #1
2 1156
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.

Aug 17 '06 #2
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));
}

"Ray Booysen" <rj***********@rjb.za.netwrote in message
news:uG**************@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.

Aug 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
7774
by: vivek | last post by:
Do any of you guys have any idea what might be the reason for losing session variables, i was working on a page where i had to stroe a array in a session(trust me that was the only 'way' i could...
1
2766
by: Scott Lyon | last post by:
I'm maintaining (read: I didn't write it, nor do I have the time to spend to rewrite it) an application that is suddenly giving me grief. The reason I say suddenly, is because we're in the...
32
3190
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
5
1276
by: cFleury | last post by:
Hi, I have a public structure which is initialized only at startup time but at least one of the elements of this structure is losing its value, this particular element is ONLY initialized at the...
9
2532
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings...
2
2251
by: David | last post by:
Using VS2005 and ASP.Net. I am going between 2 aspx pages. I set cookies in page 1, go to page 2 and then return to page 1 via postBackURL. When I get back to page 1 all of the cookie values are...
5
6109
by: chromis | last post by:
Hi there, I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request...
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.