Silverlight 4 out-of-browser support with isolated storage

6 posts, 0 answers
  1. Eddie Conner
    Eddie Conner avatar
    32 posts
    Member since:
    Dec 2009

    Posted 26 May 2010 Link to this post

    Is it possible to use OpenAccess ORM with Silverlight 4 to provide an out-of-browser (install to desktop) to provide an offline database in such as isolated storage mode? How would the OpenAccess ORM assemblies and database provider assembiles (such as SQLite or VistaDB) be deployed in the desktop install?
  2. Eddie Conner
    Eddie Conner avatar
    32 posts
    Member since:
    Dec 2009

    Posted 26 May 2010 Link to this post

    I am looking to create an offline process that can be sync'd with the online server. I found a demostration for Silverlight 4 (http://www.microsoft.com/silverlight/out-of-browser/demo/) that does this.  Also, here is link (http://www.microsoft.com/silverlight/out-of-browser/)  with more info about the out-of-browser feature. The question is can I use existing databases and OpenAccessORM to commuicate between the offline (OOB) mode.
  3. DevCraft banner
  4. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 27 May 2010 Link to this post

    Hello Eddie Conner,

    Currently OpenAccess ORM can be used with Silverlight only through some kind of a service.
    Also there are no plans currently to have the OpenAccess runtime run in Silverlight.

    You must have in mind that even in OOB mode a Silverlight application still  has limited rights. You can however use Isolated Storage to store information while offline. You could  use xml to store your information or you could look at this new but promising project:
    http://code.google.com/p/csharp-sqlite/

    I hope this helps. Do not hesitate to write again if you have more questions?

    All the best,
    Jordan
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Eliza Sahoo
    Eliza Sahoo avatar
    29 posts
    Member since:
    Jan 2010

    Posted 11 Jun 2010 Link to this post

    We can use Isolated Storage as a virtual file system to store data in a hidden folder on our machine in silverlight application. Silverlight application is allocated the storage of 1 MB per application but we can increase the amount of storage.
    This is the function to get the data in the 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

  6. Iosu Buenetxea
    Iosu Buenetxea avatar
    91 posts
    Member since:
    Jan 2008

    Posted 14 Jun 2010 Link to this post

    HI...

    remember that "Isolated Storage " is not secured.. you should know that the user can access the data going to c:\users\username\app data.......... so you should encrypt the data ...


    Iosu
  7. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 22 Jun 2010 Link to this post

    Hello ,

    You should be indeed careful when using isolated storage. Don't use isolated storage to persist unencrypted keys or passwords, or other secret information. Isolated storage files are stored on disk, where they're vulnerable to snooping or corruption by unmanaged code, highly trusted code, and trusted computer users.

    All the best,
    Petar
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
DevCraft banner