LiteDB: Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.HeaderPage'
Closed the app and now it’s happening.
at LiteDB.PageService.GetPage[T](UInt32 pageID)
at LiteDB.PageService.NewPage[T](BasePage prevPage)
at LiteDB.IndexService.AddNode(CollectionIndex index, BsonValue key, Byte level, IndexNode last)
at LiteDB.LiteEngine.UpdateDocument(CollectionPage col, BsonDocument doc)
at LiteDB.LiteEngine.<>c__DisplayClass29_0.<Update>b__0(CollectionPage col)
at LiteDB.LiteEngine.Transaction[T](String collection, Boolean addIfNotExists, Func`2 action)
at LiteDB.LiteCollection`1.Update(T document)
at MyAppAsync()
at System.Threading.Tasks.Task.Execute()
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 54 (15 by maintainers)
Hi @MarjieAVolk, not yet, sorry. I will try check this soon.
this error occurs in some concurrency scenarios. I’m working on this to fix