Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MiniProfiler.MongoDb is active? #673

Open
anuraj opened this issue Oct 15, 2024 · 1 comment
Open

MiniProfiler.MongoDb is active? #673

anuraj opened this issue Oct 15, 2024 · 1 comment

Comments

@anuraj
Copy link

anuraj commented Oct 15, 2024

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.

image

@NickCraver
Copy link
Member

This is likely a major version incompatibility, but there's no in-house MongoDB experience here (I've never used it at all directly), so it'd be a contribution to update to latest and resolve any pending issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants