If you remove a job in your code without deleting it from the Hangfire dashboard first, the following exception is thrown when you navigate to “hangfire/succeeded”
ArgumentNullException: Value cannot be null. Parameter name: job
Hangfire.Dashboard.HtmlHelper.DisplayJob(Job job) +111
Hangfire.Dashboard.Pages.SucceededJobs.Execute() +2169
Hangfire.Dashboard.RazorPage.TransformText(String innerContent) +68
Hangfire.Dashboard.RazorPage.TransformText() +38
Hangfire.Dashboard.RazorPageDispatcher.Dispatch(RequestDispatcherContext context) +297
Hangfire.Dashboard.DashboardMiddleware.Invoke(IOwinContext context) +517
Microsoft.Owin.Mapping.<Invoke>d__0.MoveNext() +523
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52
System.Runtime.CompilerServices.TaskAwaiter.GetResult() +21
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.<RunApp>d__5.MoveNext() +287
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52
System.Runtime.CompilerServices.TaskAwaiter.GetResult() +21
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.<DoFinalWork>d__2.MoveNext() +272
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +22
Microsoft.Owin.Host.SystemWeb.Infrastructure.ErrorState.Rethrow() +33
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.StageAsyncResult.End(IAsyncResult ar) +150
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.EndFinalWork(IAsyncResult ar) +42
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +415
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155