You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to profile my mongo database using MiniProfiler - but when I try do it with the following code.
var mongoServer = mongoClient.GetServer();
var mongoSettings = new MongoDatabaseSettings();
var database = new StackExchange.Profiling.MongoDB.ProfiledMongoDatabase(mongoServer, "testing", mongoSettings);
I am getting this error - The type 'MongoServer' is defined in an assembly that is not referenced. You must add a reference to assembly 'MongoDB.Driver, Version=1.9.1.221, Culture=neutral, PublicKeyToken=f686731cfb9cc103'
I am running Visual Studio 2022. Project .NET Framework version is 4.8. And currently the project is referencing MongoDB.Driver nuget package.
The text was updated successfully, but these errors were encountered:
I am trying to profile my mongo database using MiniProfiler - but when I try do it with the following code.
I am getting this error -
The type 'MongoServer' is defined in an assembly that is not referenced. You must add a reference to assembly 'MongoDB.Driver, Version=1.9.1.221, Culture=neutral, PublicKeyToken=f686731cfb9cc103'
I am running Visual Studio 2022. Project .NET Framework version is 4.8. And currently the project is referencing MongoDB.Driver nuget package.
The text was updated successfully, but these errors were encountered: