local storage in IE9 fails when the website is accessed directly from the file system

Yeah, IE9 doesn’t support localStorage for local files. Not in any official documentation that I can find, but the same issue is described in this blog. You’ll have to either host the website externally, or find some other method of persisting data. [Support for HTML5-style local storage is still in beta in many browsers, anyway. … Read more

ClickOnce and IsolatedStorage

You need to use application scoped, rather than domain scoped, isolated storage. This can be done by using one of IsolatedStorageFileStream’s overloaded constructors. Example: using System.IO; using System.IO.IsolatedStorage; … IsolatedStorageFile appScope = IsolatedStorageFile.GetUserStoreForApplication(); using(IsolatedStorageFileStream fs = new IsolatedStorageFileStream(“data.dat”, FileMode.OpenOrCreate, appScope)) { … However, now you will run into the issue of this code only working … Read more