473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Bug in the CacheDependency or Cache object? Help!

Using ASP.Net 2.0 on Vista with IIS6, if I set a CacheDependency on a file
into a Cache entry that I insert and then delete a subdirectory in the same
directory that the file is located in then my dependency is triggered and my
cache object is deleted.

If I create a directory or delete another file in that same directory then
the Cache is not bothered.

My CacheDependency specifies the full and proper file name and not just the
directory path.

Is this a known problem?

Fix or workaround?

Thanks,
Dave at DotNetCodeSlingers dot com

Sep 24 '07 #1
3 1830
Anone had this problem? Please try to see if get similar results. Could be
easily tested in some current asp.net 3.0 app just by deleting a directory.

Thanks for any feedback,
Dave
"Dave" <da**@nospam.comwrote in message
news:e1**************@TK2MSFTNGP02.phx.gbl...
Using ASP.Net 2.0 on Vista with IIS6, if I set a CacheDependency on a file
into a Cache entry that I insert and then delete a subdirectory in the
same directory that the file is located in then my dependency is triggered
and my cache object is deleted.

If I create a directory or delete another file in that same directory then
the Cache is not bothered.

My CacheDependency specifies the full and proper file name and not just
the directory path.

Is this a known problem?

Fix or workaround?

Thanks,
Dave at DotNetCodeSlingers dot com
Sep 25 '07 #2
Got this working by discreetly deleting the files in a parallel directory
rather than recreating the directory but then caching broke again if I write
a file into a sub sub directory from the root directory. Sort of like
caching is dependent on the entire directory tree CONTAINING the dependent
file rather than just the file itself.

Would love MSFT or anyone to comment on this please.

Is this a bug or expected behaviour. Is there a workaround?

Thanks,
Dave

"Dave" <da**@nospam.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
Anone had this problem? Please try to see if get similar results. Could be
easily tested in some current asp.net 3.0 app just by deleting a
directory.

Thanks for any feedback,
Dave
"Dave" <da**@nospam.comwrote in message
news:e1**************@TK2MSFTNGP02.phx.gbl...
>Using ASP.Net 2.0 on Vista with IIS6, if I set a CacheDependency on a
file into a Cache entry that I insert and then delete a subdirectory in
the same directory that the file is located in then my dependency is
triggered and my cache object is deleted.

If I create a directory or delete another file in that same directory
then the Cache is not bothered.

My CacheDependency specifies the full and proper file name and not just
the directory path.

Is this a known problem?

Fix or workaround?

Thanks,
Dave at DotNetCodeSlingers dot com
Sep 25 '07 #3
Well I found another workaround for the 2nd problem by writing into a directory parallel to the dependent file which was in the website root. The 2nd problem seems to be that I could not write a file into a subdir of the \bin directory without blowing the Cache objects that were dependent upon a file in the website root.

So in summary there is a bug in CacheDependency when used with Cache for a dependent file in the website roor that deletes the cached item if:
a.. writing data to a file in a subdir of the \bin directory
b.. deleting and creating a directory that is parallel to the dependent file
Would be great if anyone could verify this or if MSFT would fix! Don't think it is my imagination run wild...

Thanks,
Dave

"Dave" <da**@nospam.comwrote in message news:%2****************@TK2MSFTNGP02.phx.gbl...
Got this working by discreetly deleting the files in a parallel directory
rather than recreating the directory but then caching broke again if I write
a file into a sub sub directory from the root directory. Sort of like
caching is dependent on the entire directory tree CONTAINING the dependent
file rather than just the file itself.

Would love MSFT or anyone to comment on this please.

Is this a bug or expected behaviour. Is there a workaround?

Thanks,
Dave

"Dave" <da**@nospam.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
>Anone had this problem? Please try to see if get similar results. Could be
easily tested in some current asp.net 3.0 app just by deleting a
directory.

Thanks for any feedback,
Dave
"Dave" <da**@nospam.comwrote in message
news:e1**************@TK2MSFTNGP02.phx.gbl...
>>Using ASP.Net 2.0 on Vista with IIS6, if I set a CacheDependency on a
file into a Cache entry that I insert and then delete a subdirectory in
the same directory that the file is located in then my dependency is
triggered and my cache object is deleted.

If I create a directory or delete another file in that same directory
then the Cache is not bothered.

My CacheDependency specifies the full and proper file name and not just
the directory path.

Is this a known problem?

Fix or workaround?

Thanks,
Dave at DotNetCodeSlingers dot com
Sep 25 '07 #4

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

Similar topics

0
by: Nick | last post by:
I am getting the following error when creating a new CacheDependency object: Failed to start monitoring changes to '\\server\share\dir49' This error happens after 48 successful instantiations of...
1
by: Jim | last post by:
Hi, I have a few questions regarding the cache object: Does the cache object exist through postbacks? The cache object only exists for the current request, right? Is there a way to cache...
0
by: Keith | last post by:
Hi. I've developed an ASP.NET web service that uses an xml file to store configuration settings. I'm creating a cache dependency based on the xml file and its schema, like this... XmlDocument...
0
by: Brian | last post by:
Hi~ I use ASP.NET (framework 1.1 and windows 2003 server-) Cache works well but it never expires with the CacheDependency object and Expire Time Setting. In Windows XP, as far as I remember,...
0
by: Dave S | last post by:
Hi, I'm trying to use cachedependency to refresh a variable when a config file in the web application changes, but it doesn't seem to work no matter what I do. The code is in the global.asax...
1
by: Diffident | last post by:
Howdy, How can I set the CacheDependency to an Oracle table? I have come across SqlDependency class for using the CacheDependency to an SQL server table but not Oracle. Any pointers? ...
3
by: TJO | last post by:
My asp.net 1.1 app is loading an xml file into cache so that subsequent calls for the xml file will not be pulled from the file system but from the cache instead. My method for loading the xml...
2
by: daniel | last post by:
Hi, I am developing an application that requires me to set up file system watchers on directories on a network drive, as well as set up CacheDependencies in the same location for my...
3
by: poolieweb | last post by:
I have created a custom user control which creates a ASPxMenu ( Same fucntion as standard menu control) from data retreved from a webservice (Reporting Services) which deals with user access. This...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.