MongoDB problem: 'Hangfire.IGlobalConfiguration' does not contain a definition for 'UseMongoStorage'

Good morning!
I’ve currently installed HangFire.Mongo (using Nuget: “Install-Package HangFire.Mongo”), and when I set up mongo configuration by using:

GlobalConfiguration.Configuration.UseMongoStorage("mongodb://localhost", "ApplicationDatabase");

The following error is returned:

Error 1 ‘Hangfire.IGlobalConfiguration’ does not contain a definition for ‘UseMongoStorage’ and no extension method ‘UseMongoStorage’ accepting a first argument of type ‘Hangfire.IGlobalConfiguration’ could be found (are you missing a using directive or an assembly reference?)

I’ve been following the existing directives found here:

Can anyone help me?

Just to check, are you specifying the namespace so that it can find the extension method ?

using Hangfire.Mongo;

Thanks for the reply.I have the following error when specifying namespace:

The type or namespace name ‘Mongo’ does not exist in the namespace ‘Hangfire’ (are you missing an assembly reference?)

So I’ve checked the .NET Framework used in project. It’s currently being used the 4.5. Trying to solve the problem I changed it to 4.5.2 and it worked!