VladimirRybalko/CSharpMongoMigrations

Unable to cast object of type 'MongoDB.Bson.BsonObjectId' to type 'MongoDB.Bson.BsonBinaryData'.

Closed this issue · 2 comments

I am referencing NuGet package 2.2.0 in my solution and I received this error when I am trying to update a BsonDocument.

image

I checked with ILSpy that the version of the library included in the NuGet package (2.1.2) is not the latest version published in GitHub (2.1.3).

image

Can you create a NuGet package with the new version, please?

Code from NuGet package 2.2.0 (version 2.1.2 of the library)
image

Code from GitHub (version 2.1.3)
image

Hello @VladimirRybalko, I created a PR that fix this issue. Can you merge it and publish a new NuGet package?