Silverlight Isolated Storage: What Identifies an "Application"?
The docs for Silverlight IsolatedStorageFile.GetUserStoreForApplication simply say that isolated storage is "application" specific and that every other application will have its own storage, independent of all other "applications" (but with a single domain-wide quota).
That's great, but I haven't found anything yet that explains what "application" means (either in Silverlight docs or regular .NET Framework docs). What information does Silverlight specifically use to decide "this is application A" and "this is application B"? Does it just go off with the URI to the .xap file or what?
a source to share
Think of it like a url. If the URL is different, then the Isolated App Store will be different. You can change metadata, etc. In the file you want. Just not the file name / location. If I recall correctly, you can even put another XAP at the same url and it will use the previous isolated storage.
a source to share
Yups, you have isolated storage types:
-> One is related to xap url, in theory it is, but I found a nasty surprise when using it.
-> Other common to your site (your site url).
In theory you won't get any problem, but if you have problems with app one (in my case when I did a new deployment the iso got wiped :-(), check out these posts:
a source to share
We can use isolated storage as a virtual file system to store data in a hidden folder on our machine in a silverlight application. The Silverlight application is allocated 1MB of memory per application, but we can increase the storage. This is a function to get data in isolated storage
Private Function LoadData(ByVal fileName As String) As String
Dim data As String = String.Empty
Dim isfstream As New IsolatedStorageFileStream(fileName, FileMode.Open, IsolateStorageFileObj)
Dim sr As New StreamReader(isfstream)
data = sr.ReadLine()
Return data
End Function
a source to share