1

Has anyone had issues with the contents of an isolated storage directory go missing or not update properly after a click once automated deployment?

mr mo
  • 1,721
  • 3
  • 18
  • 17
  • It turns out that we were using AssemblyScope and the version number of our assembly was based on the current year. So as the year changed from 2008 to 2009, our assembly major version changed. – mr mo Jan 09 '09 at 15:37

3 Answers3

2

I believe you can find your answer on this post - ClickOnce and Isolated Storage.

Community
  • 1
  • 1
codeConcussion
  • 12,739
  • 8
  • 49
  • 62
1

If the version of your application changes (I am uncertain exactly which version number it is) then new deployment creates a new folder for storage. There are 2 ways in which isolated storage stores the data:

  1. Isolation by user and assembly
  2. Isolation by user, domain and assembly

In both cases, when the assembly changes the directory changes. I do not know what the best way to keep the data between deployments is, but that is the reasoning for it.

palehorse
  • 26,407
  • 4
  • 40
  • 48
0

Go "missing" -- yes. I'm not exactly sure how ClickOnce handles updates but I've seen where a new release would not have the same data directory associated with it (or it wouldn't move the contents forward). I was able to find the old file manually and copy it forward myself when necessary so for the user's application data I required them to specify a destination that they could easily set if the app lost the link to it (which was stored in IsolatedStorage).

Austin Salonen
  • 49,173
  • 15
  • 109
  • 139