question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.HeaderPage'

See original GitHub issue

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()

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:54 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
mbdavidcommented, Mar 19, 2018

Hi @MarjieAVolk, not yet, sorry. I will try check this soon.

1reaction
mbdavidcommented, Jul 3, 2017

this error occurs in some concurrency scenarios. I’m working on this to fix

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found