Isolated Storage Silverlight 2

June 29, 2008 at 8:27 am | Posted in Silverlight 2 | Leave a comment
Tags: ,

 What is Isolated Storage
Isolated storage is a data storage mechanism that helps in storing some data on the client machine. With isolated storage, data is always isolated by user and by assembly. Credentials such as the origin or the strong name of the assembly determine assembly identity. Data can also be isolated by application domain, using similar credentials. Using isolated storage enables partially trusted applications to store data in a manner that is controlled by the computer’s security policy. This is especially useful for Web applications and downloaded components that a user might want to run cautiously. Security policy rarely grants this kind of code permission to access the file system using standard I/O mechanisms, but, by default, code running from the local computer, a local network, or the Internet is granted the right to use isolated storage.
Non-Volatile Storage
Silverlight 2 has changed the implementation of Isolated Storage and has made it a non volatile cache, which means that whatever is saved as isolated storage will not be cleared when user clears the browser cache. The files are stored independently of browser cache, which is shared across the browsers and easily maintained by the application code. It can anytime be removed by user or by application.
Location of Isolated Storage in Vista
Location of Isolated Storage in Windows XP
%:\Documents and Settings\%\Local Settings\Application Data\Microsoft\Silverlight\is

Isolated Storage Quota limit in Silverlight 2
The default limit for isolated storage in Silverlight 2 is given as 100 kb. It’s much much lesser than the default storage limit given in Silverlight 1.1 which is 1 mb.
This limit of 100 kb can be increased to unlimited storage, but this can only be done with consent of the user accessing the application. So whenever the application requires more than 100 kb of space, an alert will be generated and user need to accept it for increasing the size.

Full article with source code is available here


Create a free website or blog at
Entries and comments feeds.