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.

Can't open db file (LiteDB v5)

See original GitHub issue

I’m trying to open db file but the process fails with next exception:

System.NotSupportedException: BSON type not supported
в LiteDB.Engine.BufferReader.ReadElement(HashSet`1 remaining, String& name)
в LiteDB.Engine.BufferReader.ReadDocument(HashSet`1 fields)
в LiteDB.Engine.HeaderPage.LoadPage()
в LiteDB.Engine.HeaderPage..ctor(PageBuffer buffer)
в LiteDB.Engine.LiteEngine..ctor(EngineSettings settings)
в LiteDB.SharedEngine.OpenRead()
в LiteDB.SharedEngine.Query(String collection, Query query)
в LiteDB.LiteQueryable`1.ExecuteReader()
в LiteDB.LiteQueryable`1.<ToDocuments>d__26.MoveNext()
в System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
в System.Linq.Buffer`1..ctor(IEnumerable`1 source)
в System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
в LiteDB.LiteQueryable`1.ToArray()
в LiteDB.Studio.SqlCodeCompletion.UpdateCodeCompletion(LiteDatabase db)
в LiteDB.Studio.MainForm.<Connect>d__6.MoveNext()

My db file here

Recycling.zip

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17

github_iconTop GitHub Comments

1reaction
sohilwwcommented, May 17, 2020

I had the same problem, I was using the .exe file beside the .sln file, it uses an old version of lite.db engine… I built a project and it’s working correctly. for building a project check the Issue 28

0reactions
a-a-kcommented, May 17, 2020

I built a project and it’s working correctly. for building a project check the Issue 28

Thank you man! Solved!

Read more comments on GitHub >

github_iconTop Results From Across the Web

LiteDB Studio fail to connect LiteDB
1 Answer 1 ... ok, found the solution. LiteDB studio is supporting v5, my litedb is v4, i have to tick this before...
Read more >
sqlite3 — DB-API 2.0 interface for SQLite databases
Open a connection to an SQLite database. Parameters. database (path-like object) – The path to the database file to be opened. You can...
Read more >
Why do I get sqlite error, "unable to open database file"?
The solution is to make sure the directory containing the database file also has write access allowed to the process. In my case,...
Read more >
LiteDB
LiteDB is a small, fast and lightweight .NET NoSQL embedded database. Serverless NoSQL Document Store; Simple API, similar to MongoDB; 100% C# code...
Read more >
LiteDB 5.0.17
LiteDB - A lightweight embedded .NET NoSQL document store in a single datafile Signed by signpath.io from repository 'https://github.com/mbdavid/LiteDB' ...
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