I have implemented a local save based on Isolated storage, it's nice, the user can save files into his local computer.
But... When I have uploaded a new version of the application, I have found that the local storage is reset (no files there), Is it normal? I mean each time you make a change and upload a new version of your XAP the user's local isolated storage is lost?
Hi! That's normal. (The the data is gone. ) The isolated storage is unique to each silverlight application. Different XAP files on the same web server will have different stores. If you use different domains, the stores will be different. If you rename the
app, it gets a new store. Changing the GUID, version, or assembly metadata also gives you a different store.
So, to keep the same storage, your app can't change the metadata, or the url that it is located at, or the its xap name.
But then... Isolated Storage only makes sense to store some caching that kind of temp stuff.
For me it doesn't makes sense if I keep the same URL and the XAP name it should't change my isolated storage. Right now... if I have to fix an small bug on my SL app that would mean that the users of my app will loose all that is stored in their isolated
storage... not a very clean solution..
The fact that it changes stores is a design and security consideration already made by Microsoft. I'm not sure how you could get that old data. Sorry. :/
This article might be useful: http://msdn.microsoft.com/en-us/magazine/dd458794.aspx
Here's a quote:
"Silverlight applications have access to two different stores: a user + application store
(or application store) that is isolated by user identity and application identity and a
user + site store (or site store) that is isolated by user identity and site identity."
Brauliod
Contributor
2392 Points
736 Posts
Isolated Storage and redeploying application
Apr 01, 2009 06:44 PM | LINK
Hi,
I have implemented a local save based on Isolated storage, it's nice, the user can save files into his local computer.
But... When I have uploaded a new version of the application, I have found that the local storage is reset (no files there), Is it normal? I mean each time you make a change and upload a new version of your XAP the user's local isolated storage is lost?
Thanks
Braulio
Free Silverlght Based Network Diagram Editor
fullsailrick
Contributor
3699 Points
829 Posts
Re: Isolated Storage and redeploying application
Apr 01, 2009 09:52 PM | LINK
So, to keep the same storage, your app can't change the metadata, or the url that it is located at, or the its xap name.
Brauliod
Contributor
2392 Points
736 Posts
Re: Re: Isolated Storage and redeploying application
Apr 02, 2009 07:01 AM | LINK
But then... Isolated Storage only makes sense to store some caching that kind of temp stuff.
For me it doesn't makes sense if I keep the same URL and the XAP name it should't change my isolated storage. Right now... if I have to fix an small bug on my SL app that would mean that the users of my app will loose all that is stored in their isolated storage... not a very clean solution..
Thanks
Braulio
Free Silverlght Based Network Diagram Editor
fullsailrick
Contributor
3699 Points
829 Posts
Re: Re: Isolated Storage and redeploying application
Apr 02, 2009 10:27 PM | LINK
MarkTap
Participant
1538 Points
281 Posts
Re: Re: Isolated Storage and redeploying application
Apr 02, 2009 11:45 PM | LINK
This article might be useful: http://msdn.microsoft.com/en-us/magazine/dd458794.aspx
Here's a quote:
"Silverlight applications have access to two different stores: a user + application store
(or application store) that is isolated by user identity and application identity and a
user + site store (or site store) that is isolated by user identity and site identity."
Brauliod
Contributor
2392 Points
736 Posts
Re: Re: Re: Isolated Storage and redeploying application
Apr 03, 2009 05:47 PM | LINK
Thanks a lot Mark !!!
Site storage is exactly the one that I need. so I would say:
By the way, got the magazine at home but the article seemed to be to dense to read (finally I went throuhg it and it's a good one ! :)).
Free Silverlght Based Network Diagram Editor