1
Vote

How to resolve OdbRuntimeException , I am using NDatabase (NoSQL) with Windows Phone

description

This is the error I am getting but not always . How to resolve OdbRuntimeException , I am using NDatabase (NoSQL) with Windows Phone :
    [Type]:[OdbRuntimeException]
[ExceptionMessage]:[
NDatabase has thrown an Exception
Error:10:Internal error : Error during opening FileStream ]
[StackTrace]:[
   at NDatabase.Odb.Core.Layers.Layer3.IO.OdbFileStream..ctor(String wholeFileName)
   at NDatabase.Odb.Core.Layers.Layer3.IO.NonBufferedFileIO..ctor(String fileName)
   at NDatabase.Odb.Core.Layers.Layer3.IO.MultiBufferedFileIO..ctor(String fileName, Int32 bufferSize)
   at NDatabase.Odb.Core.Layers.Layer3.FileIdentification.GetIO(Int32 bufferSize)
   at NDatabase.Odb.Core.Layers.Layer3.Engine.FileSystemInterface..ctor(IDbIdentification fileIdentification, Int32 bufferSize, ISession session)
   at NDatabase.Odb.Core.Layers.Layer3.Engine.FileSystemProcessor.BuildFileSystemInterface(IStorageEngine storageEngine, ISession session)
   at NDatabase.Odb.Core.Layers.Layer3.Engine.ObjectWriter..ctor(IStorageEngine engine)
   at NDatabase.Odb.Core.Layers.Layer3.Engine.StorageEngine..ctor(IDbIdentification parameters)
   at NDatabase.Odb.Main.Odb..ctor(String fileName)
   at NDatabase.Odb.OdbFactory.Open(String fileName)
   at SongsFull.App.get_ListMovies()
   at SongsFull.Movies.<bw_DoWork>b__2()]
[InnerException]:[
  [Type]:[IsolatedStorageException]
  [Message]:[Operation not permitted on IsolatedStorageFileStream.]
  [StackTrace]:[   at System.IO.IsolatedStorage.IsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, IsolatedStorageFile isf)
   at System.IO.IsolatedStorage.IsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, IsolatedStorageFile isf)
   at NDatabase.Odb.Core.Layers.Layer3.IO.OdbFileStream..ctor(String wholeFileName)]
  [InnerException]:[none]]
[OccurrenceDate]:[Mon, 15 Sep 2014 18:53:02 GMT]
[AppInstallDate]:[Sun, 14 Sep 2014 17:18:06 GMT]
[AppTotalRuns]:[5]
[AppRunsAfterLastUpdate]:[5]
[AppPreviousRunDate]:[Mon, 15 Sep 2014 18:52:28 GMT]
[AppVersion]:[1.0]
[Culture]:[en-IN]
[CurrentPageSource]:[/Movies.xaml]
[NavigationStack]:[
/Home.xaml
/Loader.xaml]
[DeviceManufacturer]:[NOKIA]
[DeviceModel]:[RM-914_im_india_269]
[DeviceHardwareVersion]:[1.5.0.9]
[DeviceFirmwareVersion]:[3058.50000.1425.0001]
[OSVersion]:[Microsoft Windows NT 8.10.12393.0]
[CLRVersion]:[4.0.30227.0]
[DeviceType]:[Device]
[NetworkType]:[Wireless80211]
[DeviceTotalMemory(Mb)]:[395.4102]
[AppPeakMemoryUsage(Mb)]:[30.76563]
[AppCurrentMemoryUsage(Mb)]:[28.58203]
[IsoStorageAvailableSpace(Mb)]:[3525]

comments

jacek wrote Oct 2, 2014 at 6:06 AM

[Message]:[Operation not permitted on IsolatedStorageFileStream.]

see the limitations of NDatabase on WP (documentation).