LiteDB.Studio icon indicating copy to clipboard operation
LiteDB.Studio copied to clipboard

Open Data file - BSON type not supported

Open philipphagen87 opened this issue 4 years ago • 7 comments

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.<Connect>d__6.MoveNext() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)

Are there any solutions? Phil

philipphagen87 avatar Mar 10 '20 19:03 philipphagen87

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

lbnascimento avatar Mar 18 '20 14:03 lbnascimento

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

RichardClaxton avatar Mar 25 '20 14:03 RichardClaxton

@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?

lbnascimento avatar Mar 25 '20 15:03 lbnascimento

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 avatar Mar 25 '20 16:03 RichardClaxton

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.

RichardClaxton avatar Mar 25 '20 16:03 RichardClaxton

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.

johan-dahlgren avatar Apr 13 '20 07:04 johan-dahlgren

take a look here - #27

a-a-k avatar May 17 '20 12:05 a-a-k