# bug?

**URL:** https://discuss.hangfire.io/c/bug/15.md?page=1

[Latest](https://discuss.hangfire.io/latest.md) · [Categories](https://discuss.hangfire.io/categories.md) · [Tags](https://discuss.hangfire.io/tags.md)

**Page:** 2

---

## [Cannot create an instance of an interface on Asp.net Console app](https://discuss.hangfire.io/t/cannot-create-an-instance-of-an-interface-on-asp-net-console-app/10858)

<div class="topic-metadata">

**Author:** [@code](https://discuss.hangfire.io/u/code)\
**Replies:** 1\
**Last updated:** [September 18, 2024, 8:24pm UTC](https://discuss.hangfire.io/t/cannot-create-an-instance-of-an-interface-on-asp-net-console-app/10858 "2024-09-18T20:24:19Z")

</div>

I am using Microsoft.Extensions.Hosting Right now using following code on program.cs serviceCollection.AddHangfire((provider, globalConfig) =\> { globalConfig .SetDataComp…

---

## [AddOrUpdate doesn't seem to update Cron timer](https://discuss.hangfire.io/t/addorupdate-doesnt-seem-to-update-cron-timer/10094)

<div class="topic-metadata">

**Author:** [@Dave\_Lyons](https://discuss.hangfire.io/u/Dave_Lyons)\
**Replies:** 1\
**Last updated:** [September 11, 2024, 6:47pm UTC](https://discuss.hangfire.io/t/addorupdate-doesnt-seem-to-update-cron-timer/10094 "2024-09-11T18:47:09Z")

</div>

I have a function which is called once when my application starts to set up recurring jobs if required (it checks the database in a table of system jobs which also stores the indentifier). If the job is required it calls…

---

## [Recurring jobs not respecting assigned queue](https://discuss.hangfire.io/t/recurring-jobs-not-respecting-assigned-queue/10850)

<div class="topic-metadata">

**Author:** [@IhaleCMN](https://discuss.hangfire.io/u/IhaleCMN)\
**Replies:** 0\
**Last updated:** [August 8, 2024, 5:27pm UTC](https://discuss.hangfire.io/t/recurring-jobs-not-respecting-assigned-queue/10850 "2024-08-08T17:27:22Z")

</div>

We have recurring jobs that are randomly failing: Hangfire.Common.JobLoadException: Could not load the job. See inner exception for the details. ---\> System.IO.FileNotFoundException: Could not resolve assembly 'Project…

---

## [Job: Could not resolve assembly - Can not find the target method](https://discuss.hangfire.io/t/job-could-not-resolve-assembly-can-not-find-the-target-method/7551)

<div class="topic-metadata">

**Author:** [@Vincent\_Blain](https://discuss.hangfire.io/u/Vincent_Blain)\
**Replies:** 4\
**Last updated:** [July 29, 2024, 3:45pm UTC](https://discuss.hangfire.io/t/job-could-not-resolve-assembly-can-not-find-the-target-method/7551 "2024-07-29T15:45:49Z")

</div>

Hi, I configured a windows service using .net core 3.1 to run hangfire. but when running the service the dashboards in the recurring jobs display “Could not resolve assembly ‘Name’” and in the succeeded Jobs once the jo…

---

## [Redis long-time reconnection exception](https://discuss.hangfire.io/t/redis-long-time-reconnection-exception/10827)

<div class="topic-metadata">

**Author:** [@avdater](https://discuss.hangfire.io/u/avdater)\
**Replies:** 0\
**Last updated:** [July 29, 2024, 9:55am UTC](https://discuss.hangfire.io/t/redis-long-time-reconnection-exception/10827 "2024-07-29T09:55:04Z")

</div>

Hey team! Thanks for the amazing library first of all! Recently I’ve encountered with this exception, using latest version of Hangfire.Pro.Redis: 2024-07-29 11:03:09 \[08:03:09 ERR\] Couldn't connect to Redis server(s) '…

---

## [Error to load schedule job](https://discuss.hangfire.io/t/error-to-load-schedule-job/10668)

<div class="topic-metadata">

**Author:** [@hgoswami](https://discuss.hangfire.io/u/hgoswami)\
**Replies:** 0\
**Last updated:** [May 3, 2024, 2:54am UTC](https://discuss.hangfire.io/t/error-to-load-schedule-job/10668 "2024-05-03T02:54:15Z")

</div>

We are using Hangfire 1.7.28 with redis and getting this below error sometimes for recently added jobs: System.InvalidOperationException: Recurring job can’t be scheduled, see inner exception for details. —\> Hangfire.Co…

---

## [Hangfire.Pro.Redis can't connect to local redis on AWS](https://discuss.hangfire.io/t/hangfire-pro-redis-cant-connect-to-local-redis-on-aws/10618)

<div class="topic-metadata">

**Author:** [@yudiy](https://discuss.hangfire.io/u/yudiy)\
**Replies:** 1\
**Last updated:** [April 22, 2024, 11:11am UTC](https://discuss.hangfire.io/t/hangfire-pro-redis-cant-connect-to-local-redis-on-aws/10618 "2024-04-22T11:11:00Z")

</div>

I’m running a Redis container on my aws machine (not using elasticache) and get the following error:

---

## [Hangfire Processed Old Records](https://discuss.hangfire.io/t/hangfire-processed-old-records/10615)

<div class="topic-metadata">

**Author:** [@surangaya2002](https://discuss.hangfire.io/u/surangaya2002)\
**Replies:** 0\
**Last updated:** [April 16, 2024, 11:37am UTC](https://discuss.hangfire.io/t/hangfire-processed-old-records/10615 "2024-04-16T11:37:49Z")

</div>

Hangfire processed old (already processed) and new records (records to be processed) at once. This iteration it took around 4 minutes to process (this is the only clue). Normally it is taking around 500 miliseconds to b…

---

## [Downgrading Hangfire not working](https://discuss.hangfire.io/t/downgrading-hangfire-not-working/10611)

<div class="topic-metadata">

**Author:** [@olagesin](https://discuss.hangfire.io/u/olagesin)\
**Replies:** 0\
**Last updated:** [April 15, 2024, 7:54pm UTC](https://discuss.hangfire.io/t/downgrading-hangfire-not-working/10611 "2024-04-15T19:54:32Z")

</div>

Hello, My team made an upgrade from Hangfire 1.7.31 to 1.8 and we encountered issues due to disparity with our Production environment. We decided to downgrade back to 1.7.31 but we now encounter this error: column “dat…

---

## [Using Hangfire.Pro.Redis with Dragonfly](https://discuss.hangfire.io/t/using-hangfire-pro-redis-with-dragonfly/10602)

<div class="topic-metadata">

**Author:** [@Joel](https://discuss.hangfire.io/u/Joel)\
**Replies:** 2\
**Last updated:** [April 9, 2024, 9:48am UTC](https://discuss.hangfire.io/t/using-hangfire-pro-redis-with-dragonfly/10602 "2024-04-09T09:48:53Z")

</div>

After the recent Redis drama we are exploring other options, such as https://www.dragonflydb.io/, which claims to be a drop-in Redis replacement. It seems to function fine for our other caching needs but when using it wi…

---

## [Hangfire schema with CockroachDB](https://discuss.hangfire.io/t/hangfire-schema-with-cockroachdb/10579)

<div class="topic-metadata">

**Author:** [@DanHangs1414](https://discuss.hangfire.io/u/DanHangs1414)\
**Replies:** 0\
**Last updated:** [March 29, 2024, 9:57pm UTC](https://discuss.hangfire.io/t/hangfire-schema-with-cockroachdb/10579 "2024-03-29T21:57:04Z")

</div>

Hi there! I’m unable to run Hangfire DB migrations using CockroachDB. On application start, my “api” and “identity” schemas are created and migrations are applied. But it fails to create the Hangfire schema with an erro…

---

## [Unable to run 2 jobs every minute. Runs only one](https://discuss.hangfire.io/t/unable-to-run-2-jobs-every-minute-runs-only-one/5002)

<div class="topic-metadata">

**Author:** [@Yasser\_Shaikh](https://discuss.hangfire.io/u/Yasser_Shaikh)\
**Replies:** 1\
**Last updated:** [March 29, 2024, 3:56pm UTC](https://discuss.hangfire.io/t/unable-to-run-2-jobs-every-minute-runs-only-one/5002 "2024-03-29T15:56:07Z")

</div>

I have configured calls to 2 method of a class to be called every minute as shown below RecurringJob.AddOrUpdate("HK queue test", () =\> queueChecker.SendToHK(GetQueueCheckerConfiguration(DataCenters.HK)), Cron.Minutely(…

---

## [Multiples notifications, one enqueue - New transaction is not allowed because there are other threads running in the session](https://discuss.hangfire.io/t/multiples-notifications-one-enqueue-new-transaction-is-not-allowed-because-there-are-other-threads-running-in-the-session/9455)

<div class="topic-metadata">

**Author:** [@FernandoVeras](https://discuss.hangfire.io/u/FernandoVeras)\
**Replies:** 5\
**Last updated:** [March 7, 2024, 3:41am UTC](https://discuss.hangfire.io/t/multiples-notifications-one-enqueue-new-transaction-is-not-allowed-because-there-are-other-threads-running-in-the-session/9455 "2024-03-07T03:41:55Z")

</div>

Hello, we got a stranger error when send multiples notifications from one enqueue. “New transaction is not allowed because there are other threads running in the session”. We use .NetCore 3.1 with Entity Framework, the e…

---

## [Hangfire.Console serialization error after upgrading from v1.0.5 to v2.0.0](https://discuss.hangfire.io/t/hangfire-console-serialization-error-after-upgrading-from-v1-0-5-to-v2-0-0/10530)

<div class="topic-metadata">

**Author:** [@kristin](https://discuss.hangfire.io/u/kristin)\
**Replies:** 1\
**Last updated:** [March 5, 2024, 4:21pm UTC](https://discuss.hangfire.io/t/hangfire-console-serialization-error-after-upgrading-from-v1-0-5-to-v2-0-0/10530 "2024-03-05T16:21:09Z")

</div>

How do we fix the serialization error. Upgraded Hangfire.Console.Extensions version from v1.0.5 to v2.0.0; now we cannot view details of previous jobs with logs prior to v2.0.0. Hangfire is throwing error 500 with the m…

---

## [TaskCanceledException during shutdown](https://discuss.hangfire.io/t/taskcanceledexception-during-shutdown/10512)

<div class="topic-metadata">

**Author:** [@BrianDB](https://discuss.hangfire.io/u/BrianDB)\
**Replies:** 2\
**Last updated:** [February 26, 2024, 7:40am UTC](https://discuss.hangfire.io/t/taskcanceledexception-during-shutdown/10512 "2024-02-26T07:40:00Z")

</div>

Hi I am trying to setup Hangfire in a way so my long running jobs (About 1 min) will have time to finish during a shutdown. I have set the ShutdownTimeout and StopTimeout to 1 min but if a job is running during shutdow…

---

## [Creating Database Automatically in .Net Core 8 Issue](https://discuss.hangfire.io/t/creating-database-automatically-in-net-core-8-issue/10523)

<div class="topic-metadata">

**Author:** [@yasmin\_ali](https://discuss.hangfire.io/u/yasmin_ali)\
**Replies:** 0\
**Last updated:** [February 25, 2024, 1:39pm UTC](https://discuss.hangfire.io/t/creating-database-automatically-in-net-core-8-issue/10523 "2024-02-25T13:39:15Z")

</div>

I’m using .net core 8 and Hangfire v 1.8, and I want to create database automatically when I run project, I tried many ways as (GlobalConfiguration) and it doesn’t create automatically. I need an example for creating d…

---

## [When I close the dashboard the recurring jobs stops](https://discuss.hangfire.io/t/when-i-close-the-dashboard-the-recurring-jobs-stops/10505)

<div class="topic-metadata">

**Author:** [@Hussein\_Gil](https://discuss.hangfire.io/u/Hussein_Gil)\
**Replies:** 0\
**Last updated:** [February 14, 2024, 3:33pm UTC](https://discuss.hangfire.io/t/when-i-close-the-dashboard-the-recurring-jobs-stops/10505 "2024-02-14T15:33:15Z")

</div>

Hello. I deployed a HangFire app with NetCore on IIS v10. Everything good, but I just noticed that if I closed the dashboard the recurring job stop the executions. I have no idea why this is happening.

---

## [Hangfire is processing only one job at the time](https://discuss.hangfire.io/t/hangfire-is-processing-only-one-job-at-the-time/10460)

<div class="topic-metadata">

**Author:** [@enotpoloskun](https://discuss.hangfire.io/u/enotpoloskun)\
**Replies:** 0\
**Last updated:** [January 18, 2024, 1:39pm UTC](https://discuss.hangfire.io/t/hangfire-is-processing-only-one-job-at-the-time/10460 "2024-01-18T13:39:34Z")

</div>

Sorry if it’s know issue, or there is a workaround. I didn’t manage to find something similar. We have 3 servers in tenant running a batch of recurring jobs. Each server is configured to use 20 worker threads (all serve…

---

## [Can not log exception errors](https://discuss.hangfire.io/t/can-not-log-exception-errors/10457)

<div class="topic-metadata">

**Author:** [@L\_M](https://discuss.hangfire.io/u/L_M)\
**Replies:** 0\
**Last updated:** [January 17, 2024, 10:25am UTC](https://discuss.hangfire.io/t/can-not-log-exception-errors/10457 "2024-01-17T10:25:08Z")

</div>

I’ve implemented a custom logger in my ASP.NET Framework project using the ILog and ILogProvider interfaces. However, I’ve come across an issue where, following an exception, it fails to enter the Log function within the…

---

## [System.OutOfMemoryException during sending heartbeat](https://discuss.hangfire.io/t/system-outofmemoryexception-during-sending-heartbeat/10454)

<div class="topic-metadata">

**Author:** [@Krzysztof\_Cichopek](https://discuss.hangfire.io/u/Krzysztof_Cichopek)\
**Replies:** 0\
**Last updated:** [January 15, 2024, 7:50am UTC](https://discuss.hangfire.io/t/system-outofmemoryexception-during-sending-heartbeat/10454 "2024-01-15T07:50:50Z")

</div>

Hello Hangfire Team, I am encountering a recurring issue with Hangfire in my production environment, which manifests approximately once every six months. The Hangfire server is running as a Windows Service, and my appli…

---

## [Potentially long running Job get cancelled after 30 minutes](https://discuss.hangfire.io/t/potentially-long-running-job-get-cancelled-after-30-minutes/10442)

<div class="topic-metadata">

**Author:** [@paolo\_ponzano](https://discuss.hangfire.io/u/paolo_ponzano)\
**Replies:** 0\
**Last updated:** [January 7, 2024, 5:36am UTC](https://discuss.hangfire.io/t/potentially-long-running-job-get-cancelled-after-30-minutes/10442 "2024-01-07T05:36:45Z")

</div>

Hello, I’m running a Hangfire 1.7.34 instance with UseSqlServerStorage and I have a synching job that can take more than 30 minutes to execute. Here’s my configuration startup settings: public static void ConfigureHa…

---

## [Migration .net 3.1 core -\> .net 7 - makes hangfire hiccup](https://discuss.hangfire.io/t/migration-net-3-1-core-net-7-makes-hangfire-hiccup/10411)

<div class="topic-metadata">

**Author:** [@Dorathoto](https://discuss.hangfire.io/u/Dorathoto)\
**Replies:** 1\
**Last updated:** [December 19, 2023, 1:57pm UTC](https://discuss.hangfire.io/t/migration-net-3-1-core-net-7-makes-hangfire-hiccup/10411 "2023-12-19T13:57:35Z")

</div>

I migrated my solution from 3.1 to .NET 7. Everything seems to work perfectly until after a few hours (there is no exact time). Hangfire stops processing and starts queuing up to the available works limit (see image 3). …

---

## [Jobs being disabled in v1.8.6](https://discuss.hangfire.io/t/jobs-being-disabled-in-v1-8-6/10389)

<div class="topic-metadata">

**Author:** [@Goodmedalist](https://discuss.hangfire.io/u/Goodmedalist)\
**Replies:** 1\
**Last updated:** [December 12, 2023, 8:45am UTC](https://discuss.hangfire.io/t/jobs-being-disabled-in-v1-8-6/10389 "2023-12-12T08:45:18Z")

</div>

Jobs that have always run suddenly are showing DISABLED, with tooltip: “Cron expression is invalid or don’t have any occurrences over the next 100 years”. I followed the advice for the thread " Job keeps getting disabled"…

---

## [Recurring jobs with single method having different parameters](https://discuss.hangfire.io/t/recurring-jobs-with-single-method-having-different-parameters/3467)

<div class="topic-metadata">

**Author:** [@sachin\_kumar](https://discuss.hangfire.io/u/sachin_kumar)\
**Replies:** 2\
**Last updated:** [December 7, 2023, 1:13am UTC](https://discuss.hangfire.io/t/recurring-jobs-with-single-method-having-different-parameters/3467 "2023-12-07T01:13:22Z")

</div>

I am using Hangfire Recurringjob api to scedule some jobs but I am using same method with different arguements. For ex for SelectAll(int scenario){}; RecurringJob.AddOrUpdate(SelectAll(1)); RecurringJob.AddOrUpdate(Selec…

---

## [Multiple Hangfire database migration](https://discuss.hangfire.io/t/multiple-hangfire-database-migration/10335)

<div class="topic-metadata">

**Author:** [@matteo\_rigoni](https://discuss.hangfire.io/u/matteo_rigoni)\
**Replies:** 0\
**Last updated:** [November 9, 2023, 11:16am UTC](https://discuss.hangfire.io/t/multiple-hangfire-database-migration/10335 "2023-11-09T11:16:58Z")

</div>

Hi, i use version 1.7.27 of Hangfire in a .net 4.8 application deployed as windows service. I’ve noticed that in worker logs i’ve a huge amount of this: 2023-11-08 22:34:10,807 \[Worker #2\] INFO Hangfire.SqlServer.SqlSe…

---

## [Hangfire job gets stuck in processing status](https://discuss.hangfire.io/t/hangfire-job-gets-stuck-in-processing-status/10329)

<div class="topic-metadata">

**Author:** [@sandeeppalepu](https://discuss.hangfire.io/u/sandeeppalepu)\
**Replies:** 0\
**Last updated:** [November 6, 2023, 9:12pm UTC](https://discuss.hangfire.io/t/hangfire-job-gets-stuck-in-processing-status/10329 "2023-11-06T21:12:09Z")

</div>

Problem: I am experiencing an issue where the job is stuck in a processing state and all the jobs will be stuck due to that one job. Randomly Jobs will be stuck in Processing State then that worker will be stuck and wil…

---

## [Dashboard issue after version update](https://discuss.hangfire.io/t/dashboard-issue-after-version-update/10327)

<div class="topic-metadata">

**Author:** [@matteo\_rigoni](https://discuss.hangfire.io/u/matteo_rigoni)\
**Replies:** 1\
**Last updated:** [November 6, 2023, 1:20pm UTC](https://discuss.hangfire.io/t/dashboard-issue-after-version-update/10327 "2023-11-06T13:20:32Z")

</div>

Hi all, in my .NET 4.6.1 application i update version of Hangfire to 1.7.27, but i leave database schema to 5. All works fine, except that dashboard of Hangfire has now some bugs. No render of history data: And i ca…

---

## [Blazor Server project not registering hangfire route in IIS production environment](https://discuss.hangfire.io/t/blazor-server-project-not-registering-hangfire-route-in-iis-production-environment/10297)

<div class="topic-metadata">

**Author:** [@PeterEngineer](https://discuss.hangfire.io/u/PeterEngineer)\
**Replies:** 2\
**Last updated:** [October 30, 2023, 8:51am UTC](https://discuss.hangfire.io/t/blazor-server-project-not-registering-hangfire-route-in-iis-production-environment/10297 "2023-10-30T08:51:53Z")

</div>

When deploying a release build of my Blazor Server app and hosting it with IIS, the /hangfire endpoint is caught by the default Blazor routing as “not found”. However, it is working locally, in debug mode, using IIS Expr…

---

## [Multiple server scheduling](https://discuss.hangfire.io/t/multiple-server-scheduling/10311)

<div class="topic-metadata">

**Author:** [@daniele82fi](https://discuss.hangfire.io/u/daniele82fi)\
**Replies:** 1\
**Last updated:** [October 28, 2023, 4:27am UTC](https://discuss.hangfire.io/t/multiple-server-scheduling/10311 "2023-10-28T04:27:15Z")

</div>

Hi. I have a single database and I have 3 HangFire servers: the first server → queue : “X” The second server → queue : “Y”,“Z” The third server → queue : “W”. Scheduling a XXXX task, on the second server R…

---

## [Lock exeception](https://discuss.hangfire.io/t/lock-exeception/10304)

<div class="topic-metadata">

**Author:** [@Sridhar](https://discuss.hangfire.io/u/Sridhar)\
**Replies:** 0\
**Last updated:** [October 24, 2023, 7:44am UTC](https://discuss.hangfire.io/t/lock-exeception/10304 "2023-10-24T07:44:23Z")

</div>

Hangfire.PostgreSql.PostgreSqlDistributedLockException: ‘Could not place a lock on the resource ‘public:lock:recurring-job:Clean-Reservation-Export’: Lock timeout.’ I’m getting the above error, tried the following optio…

[Previous page](https://discuss.hangfire.io/c/bug/15.md)

[Next page](https://discuss.hangfire.io/c/bug/15.md?page=2)
