mbdavid / LiteDB.Studio

A GUI tool for viewing and editing documents for LiteDB v5
MIT License
781 stars 200 forks source link

Open Data file - BSON type not supported #17

Open philipphagen87 opened 4 years ago

philipphagen87 commented 4 years ago

Hi!

I always get the error that BSON type is not supported.

I use studio version 0.5.0.0

System.NotSupportedException: BSON type not supported bei LiteDB.Engine.BufferReader.ReadElement(HashSet1 remaining, String& name) bei LiteDB.Engine.BufferReader.ReadDocument(HashSet1 fields) bei LiteDB.Engine.HeaderPage.LoadPage() bei LiteDB.Engine.HeaderPage..ctor(PageBuffer buffer) bei LiteDB.Engine.LiteEngine..ctor(EngineSettings settings) bei LiteDB.ConnectionString.CreateEngine() bei System.Lazy1.CreateValue() bei System.Lazy1.LazyInitValue() bei System.Lazy1.get_Value() bei LiteDB.LiteCollection1.Query() bei LiteDB.Studio.SqlCodeCompletion.UpdateCodeCompletion(LiteDatabase db) bei LiteDB.Studio.MainForm.d6.MoveNext() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b6_0(Object state)

Are there any solutions? Phil

lbnascimento commented 4 years ago

@philipphagen87 Could you provide the datafile you're using?

RichardClaxton commented 4 years ago

Hello,

I am having the same issues.

Using LiteDB version 5.0.4.0

here is a simple data file that fails to load in LiteDB.Studio but ok using my code.

Thanks Richard.

jobs.zip

lbnascimento commented 4 years ago

@RichardClaxton Your file seemed to open correctly here (there are no collections other than the system collections). What version of LiteDB Studio did you use?

RichardClaxton commented 4 years ago

It was Version 1.0.1

It does however convert and open .db file from LiteDB.dll version 4.1.4.0 but does not open "BSON type not supported" with .db created with LiteDB.dll Version 5.0.4.0

RichardClaxton commented 4 years ago

Very strange i have just down loaded it again it is displaying version v1.0.1.0 and it has correctly loaded the .db file.

johan-dahlgren commented 4 years ago

Hi! Also had the same problem. But it turned out to be the blocking of files downloaded from Internet that was the problem. Just unblock the file in the file-properties and it works again.

a-a-k commented 4 years ago

take a look here - #27