Problem with newtonsoft.json when using hangfire in a dll


I have a problem and I just have no idea how to solve it.
First of all you need to know that I’m using hangfire in a dll.
When I’m trying to launch a recursiveJob or the dashboard I have the following error :

I’v read a lot of similar issus and they all talk about modifying the web.config adding a bindingRedirect.
In my case it just have no effect and I’m still having this error.
My version of Newtonsoft.Json is on all my dll except for hangfire.

I hope you will be able to help.

You say you’re using the Newtonsoft 8.0 library? The error in the image says the reference you added is version 4.5. Try changing the reference entry to 8.0 (or whatever the DLL says) and recompile.

It’s far easier to use the NuGet packages for Visual Studio projects. Especially when it comes to updating and manageability.