Caching Application Block - IsolatedStorage path too long

Feb 11, 2011 at 5:45 PM


 I am using the caching application block to cache some data on client machines so that they have access to the data, even when they are disconnected from the net. This has worked flawlessly for many machines, but on some XP machines, I'm getting the following error when trying to cache the first piece of data:

Message = The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

If I understand where the backing store is saved, it's in a path similar to this:

c:\Documents and Settings\<User Name>\Local Settings\Application Data\IsolatedStorage\tqli5mdv.xa5\htccao3l.ksb\StrongName.1r3fiexsbrusebdd0maaohl2i5cz4lhq\StrongName.mwjgo5cc1qomwe5tbepbfnyucq0obm3f\Files\<BackingStore PartitionName>

This is obviously a large path to begin with. Then throw in the user name and partition name and I'm guessing it exceeds the limit.

 So, I would like to change, if possible, the location of where the backing store is saved. I would like to leave everything else alone. How difficult is it to do this? How would I get started?

Feb 12, 2011 at 3:19 AM

Please post this in the enterprise library forum - This forum is for discussions specific to the Unity Dependency Injection container.