"Could not find file" when using isolated storage

I save the material to an isolated storage file (using the IsolStorageFile class). It works well, and I can get the stored values ​​when calling the save and retrieve methods at the ClickOnce level .

+5
source share
2 answers

When you instantiated IsolStorageFile, did you apply it to IsolStorageScope.Machine?

Now that you have illustrated your code style and I returned to re-testing the methods, here is an explanation:

  • GetMachineStoreForAssembly () - bound to the machine and assembly ID. Different assemblies in one application will have their own isolated storage.
  • GetMachineStoreForDomain () is the wrong word in my opinion. bound to machine and domain id on top of build id. There should have been an option only for AppDomain.
  • GetMachineStoreForApplication() - , . , , . - . , " ". , Click Once. .
+4

, GetMachineStoreForDomain, , GetMachineStoreForAssembly.

GetMachineStoreForAssembly , , GetMachineStoreForDomain AppDomain , . GetMachineStoreForApplication, .

IsolatedStorageFile http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefile_members.aspx

+1

All Articles