Can't open db file (LiteDB v5)
See original GitHub issueI’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
Issue Analytics
- State:
- Created 3 years ago
- Comments:17
Top 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 >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
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
Thank you man! Solved!