Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.HeaderPage'
See original GitHub issueClosed 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()
Issue Analytics
- State:
- Created 6 years ago
- Comments:54 (15 by maintainers)
Top Results From Across the Web
InvalidCastException when retrieving a record from LiteDB
If I try to find the record via the shell, I get an Unable to cast object of type 'System.Int32' to type 'System.String'....
Read more >Error writing to stat database ? :: Eco Server Help
Error writing to stat database: InvalidCastException Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.HeaderPage'. and this
Read more >Unable to cast object of type 'LiteDB.EmptyPage' ...
Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.HeaderPage'
Read more >InvalidCastException, object of type 'LiteDB.EmptyPage' to ...
Hello, I get the following error when I'm trying to add a new object to an existing collection: System.InvalidCastException: Unable to cast ...
Read more >Robot log not present in Orchestrator - Help
{“message”:“Insert logs to local storage failed, reason: Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.HeaderPage'.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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