LiteDB.Studio: Can't open db file (LiteDB v5)

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17

Most upvoted 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