This is a migrated thread and some comments may be shown as answers.

Silverlight 4 out-of-browser support with isolated storage

5 Answers 154 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eddie Conner
Top achievements
Rank 1
Eddie Conner asked on 27 May 2010, 12:16 AM
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?

5 Answers, 1 is accepted

Sort by
0
Eddie Conner
Top achievements
Rank 1
answered on 27 May 2010, 12:37 AM
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.
0
Jordan
Telerik team
answered on 27 May 2010, 08:00 AM
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.
0
Eliza Sahoo
Top achievements
Rank 1
answered on 11 Jun 2010, 12:13 PM
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

0
Iosu Buenetxea
Top achievements
Rank 1
answered on 14 Jun 2010, 09:06 PM
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
0
PetarP
Telerik team
answered on 22 Jun 2010, 04:47 PM
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.
Tags
General Discussions
Asked by
Eddie Conner
Top achievements
Rank 1
Answers by
Eddie Conner
Top achievements
Rank 1
Jordan
Telerik team
Eliza Sahoo
Top achievements
Rank 1
Iosu Buenetxea
Top achievements
Rank 1
PetarP
Telerik team
Share this question
or