phoenixwebgroup / DotNetMongoMigrations

Migrations for Mongo using the official csharp (dotnet) driver
Other
59 stars 34 forks source link

Use new mongo drivers instead of outdated. #18

Open alex-erygin opened 8 years ago

sergiorykov commented 8 years ago

+1

NickAb commented 8 years ago

Use of old mongo leads to exception in ASP.NET Core projects when referencing both MongoMigrations and newer Mongo Driver. I have non english language as system language

System.TypeLoadException: Отсутствует реализация метода "get_ReadConcern" в типе "MongoDB.Driver.MongoServerSettings" из сборки "MongoDB.Driver.Legacy, Version=2.0.1.27, Culture=neutral, PublicKeyToken=null".

But basically it reads that get_ReadConcern is not present on MongoDB.Driver.MongoServerSettings in assembly MongoDB.Driver.Legacy, Version=2.0.1.27, Culture=neutral, PublicKeyToken=null

denkj commented 6 years ago

I have an error in English.

Unhandled Exception: System.TypeLoadException: Method 'get_ReadConcern' in type 'MongoDB.Driver.MongoServerSettings' from assembly 'MongoDB.Driver.Legacy, Version=2.0.1.27, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at MongoDB.Driver.MongoClientExtensions.GetServer(MongoClient client)
at MongoMigrations.MigrationRunner..ctor(String mongoServerLocation, String databaseName)
jonpaulsalomon commented 5 years ago

Same problem here

letitechera commented 3 years ago

Was this fixed??