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