Cannot connect .NET app with MongoDB (System.MissingMethodException: Method not found:)
I am simply trying to connect my MongoDB cluster with my .NET app, but when I test my routes with swagger i get this error: System.MissingMethodException: Method not found: 'MongoDB.Bson.GuidRepresentationMode MongoDB.Bson.BsonDefaults.get_GuidRepresentationMode()'. at MongoDB.Driver.MongoUrlBuilder..ctor() at MongoDB.Driver.MongoUrlBuilder..ctor(String url) at Microsoft.EntityFrameworkCore.MongoOptionsExtension.SanitizeConnectionStringForLogging(String connectionString) at…