Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Change Silverlight Isolated Storage Identity

$
0
0

I hate to cross post from SO, but here I go:

I would like for Isolated Storage in my Silverlight application to be identified by the domain of the xap it loads from, not by the host domain as displayed in the browser URL, which it does by default.

According to the Types of Isolated Storage documentation there should be a way to store under the "Publisher Identity" by strongly naming the assembly, instead of identifying the store by the URL supplying the application. I quote:

Assembly identity is the evidence of the assembly. This might come from a cryptographic digital signature, which can be the assembly's strong name, the software publisher of the assembly, or its URL identity. If an assembly has both a strong name and a software publisher identity, then the software publisher identity is used. If the assembly comes from the Internet and is unsigned, the URL identity is used.

I've strongly named the assembly (sn verified) and added the certificate to trusted root on my machine. I'm serving the page locally through iis but the store is still identified by the site's URL.

I've tried creating the store 2 different ways:

IsolatedStorageSettings.SiteSettings[mykey]= myvalue;//andIsolatedStorageFile.GetUserStoreForApplication().CreateFile("myfile.txt");

The id can be seen insideC:\Users\afeldman\AppData\LocalLow\Microsoft\Silverlight\is\20ngypzr.gs4\1l3t5sqo.aji\1\s\...\id.dat text file, and unfortunately it remains tied to the host URL.

Has anyone managed to get the isolated store to be identified with a non host URL identifier by using strongly named assemblies, or any other means?



Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>