Hangfire.Server.BackgroundProcessingServer.ThrowIfDisposed() exception


I don’t know what is causing this exception in which it seems that the HangFire job was previously disposed (by some unknown process). I’ve read that it seems to be a HangFire bug.

This is the exception

Message: Cannot access a disposed object.
Object name: ‘Hangfire.Server.BackgroundProcessingServer’.
StackTrace: at Hangfire.Server.BackgroundProcessingServer.ThrowIfDisposed()

Target Site
Assembly:Hangfire.Core, Version=, Culture=neutral, PublicKeyToken=null
Reflected Type: Hangfire.Server.BackgroundProcessingServer
Module: Hangfire.Core.dll - Hangfire.Core, Version=, Culture=neutral, PublicKeyToken=null