I use Hangfire core 1.5.2 , everything works fine as i was using the Newtonsoft.Json version came with the Hangfire installation ( Which was 4.5). As part of the project requirement we upgraded to latest version of Newtonsoft.Json - 7.0 and my Hangfire starts breaking. Our company do have a pro version , and we are evaluating this software for wider usage. Any pointers to what i am doing wrong here ?
The dashboard is giving me the following error
Could not load file or assembly ‘Newtonsoft.Json,
Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’ or
one of its dependencies. The located assembly’s manifest definition does
not match the assembly reference. (Exception from HRESULT: 0x80131040)
Here is the stack trace.
[FileLoadException: Could not load file or assembly ‘Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Hangfire.Dashboard.Pages.HomePage.Execute() +0
Hangfire.Dashboard.RazorPage.TransformText(String body) +31
Hangfire.Dashboard.RazorPageDispatcher.Dispatch(RequestDispatcherContext context) +146
Hangfire.Dashboard.<>c__DisplayClass8.b__4(IDictionary`2 env) +467
Microsoft.Owin.Mapping.d__0.MoveNext() +462
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +13908768
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +61
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.d__5.MoveNext() +203
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +13908768
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +61
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.d__2.MoveNext() +193
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.StageAsyncResult.End(IAsyncResult ar) +96
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +363
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +157