UltraLiteDB
UltraLiteDB copied to clipboard
We're UltraLiteDB error exception in our mobile app (both iOS and Android) using the latest version (4.2.0)
LuaException: c# exception:System.InvalidCastException: Specified cast is not valid. at (wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr) at UltraLiteDB.PageService.GetPage[T] (System.UInt32 pageID) [0x0005a] in <95098536942a47358422eb3173b6b3d5>:0 at UltraLiteDB.CollectionService.Get (System.String name) [0x00013] in <95098536942a47358422eb3173b6b3d5>:0 at UltraLiteDB.UltraLiteEngine.GetCollectionPage (System.String name, System.Boolean addIfNotExits) [0x00005] in <95098536942a47358422eb3173b6b3d5>:0 at UltraLiteDB.UltraLiteEngine.Transaction[T] (System.String collection, System.Boolean addIfNotExists, System.Func2[T,TResult] action) [0x0004d] in <95098536942a47358422eb3173b6b3d5>:0 at UltraLiteDB.UltraLiteEngine.Insert (System.String collection, System.Collections.Generic.IEnumerable1[T] docs, UltraLiteDB.BsonAutoId autoId) [0x00041] in <95098536942a47358422eb3173b6b3d5>:0 at UltraLiteDB.UltraLiteCollection1[T].Insert (System.Collections.Generic.IEnumerable1[T] docs) [0x00026] in <95098536942a47358422eb3173b6b3d5>:0
I use the BsonDocument of UltraLiteDB as a generic.
It looks like the database file is damaged. I can try to evaluate it if you post the database file that is causing the error.
Closing due to not being able to repro