views:

396

answers:

1

Application1 uses Microsoft Enterprise Library Caching Application Block with IsolatedStorageBackingStore to cache data from database accessed by Internet. The task is to create another Application2 (helper application like "Adobe Flash Player uninstaller") which will be able to clear Application1 cache (this will be one of many Application2 features).

The question is - how can Application2 get path of Application1 caching folder (for clearing it)?

The path will be something like "<System Drive>\Documents and Settings\<User>\Local Settings\Application Data\IsolatedStorage\tqli5mdv.xa5\htccao3l.ksb\StrongName.1r3fiexsbrusebdd0maaohl2i5cz4lhq\StrongName.mwjgo5cc1qomwe5tbepbfnyucq0obm3f\Files\<BackingStore PartitionName>"?

It's a pity, but User has several applications with the same <BackingStore PartitionName> and this can't be changed, so Application2 can't find this path by <BackingStore PartitionName> string (course there will be several folders - one for each application - and I don't know how can Application2 choose which one is Application1 folder). I was googling a lot but with no result. Please hel

A: 

I'm not sure about the most recent versions of the Caching block, but previous versions wouldn't allow you to do this. They partition the store by the application's assembly name (amongst other things) so two applications can't see each others data.

Rik Garner
Thx for the reply. I thought there is a way of getting path to the cache. I don't need to see other application data, I want to clear other application cache. http://www.eggheadcafe.com/index/System.IO_Source_f8adb5a3-d675-4cd3-8c8c-3784a3c745cd.asp I know this tool can help, but link to full source is broken :(
Kluyg
Is it possible to share the cache, if you define the cache as a per-User one then, presumably both applications will have the same cache location. (I haven't tried it though)
Rik Garner