# \#aspnetcore

**URL:** https://discuss.hangfire.io/tag/aspnetcore/30.md

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

---

## [How to display in-progress output from a stored procedure in the Hangfire console](https://discuss.hangfire.io/t/how-to-display-in-progress-output-from-a-stored-procedure-in-the-hangfire-console/11460)

<div class="topic-metadata">

**Author:** [@philipd](https://discuss.hangfire.io/u/philipd)\
**Replies:** 0\
**Last updated:** [October 16, 2026, 6:50pm UTC](https://discuss.hangfire.io/t/how-to-display-in-progress-output-from-a-stored-procedure-in-the-hangfire-console/11460 "2026-10-16T18:50:16Z")

</div>

I am using the Hangfire.Console package (IdentityStream.Hangfire.Console) to display progress messages in the Hangfire dashboard. This is very useful to see the progress of a long-running job in the “Processing” view, or…

---

## [Type Analysis Conflict: "dynamic" type becomes unusable in Dapper/EF after installing v1.21.1 on .NET 8](https://discuss.hangfire.io/t/type-analysis-conflict-dynamic-type-becomes-unusable-in-dapper-ef-after-installing-v1-21-1-on-net-8/11426)

<div class="topic-metadata">

**Author:** [@Hossam.DevOps](https://discuss.hangfire.io/u/Hossam.DevOps)\
**Replies:** 0\
**Last updated:** [May 8, 2026, 8:57am UTC](https://discuss.hangfire.io/t/type-analysis-conflict-dynamic-type-becomes-unusable-in-dapper-ef-after-installing-v1-21-1-on-net-8/11426 "2026-05-08T08:57:37Z")

</div>

Hello, I am the Lead Backend Engineer for a fintech/multi-vendor platform (Maqadhi). We recently encountered a strange behavior when upgrading Hangfire.PostgreSql to version 1.21.1 in a .NET 8.0 environment. The Issue…

---

## [Housekeeping on hangfire database](https://discuss.hangfire.io/t/housekeeping-on-hangfire-database/11410)

<div class="topic-metadata">

**Author:** [@stevescuba](https://discuss.hangfire.io/u/stevescuba)\
**Replies:** 1\
**Last updated:** [March 31, 2026, 4:00am UTC](https://discuss.hangfire.io/t/housekeeping-on-hangfire-database/11410 "2026-03-31T04:00:46Z")

</div>

We have noticed that the hangfire database has a huge number of records, how would we purge these records, are there any gotchas? what would be the impact of doing this manually, should hangfire do this automatically

---

## [Hangfire - Search for a record](https://discuss.hangfire.io/t/hangfire-search-for-a-record/11411)

<div class="topic-metadata">

**Author:** [@stevescuba](https://discuss.hangfire.io/u/stevescuba)\
**Replies:** 1\
**Last updated:** [February 14, 2026, 7:27am UTC](https://discuss.hangfire.io/t/hangfire-search-for-a-record/11411 "2026-02-14T07:27:33Z")

</div>

How do we search for a record in the hangfire database that has not been expired in C# and set that record as expired as we had no dashboard due to Hangfire trying to run the same job due to no expiry date?

---

## [Hangfire - delete record / expiry record](https://discuss.hangfire.io/t/hangfire-delete-record-expiry-record/11409)

<div class="topic-metadata">

**Author:** [@stevescuba](https://discuss.hangfire.io/u/stevescuba)\
**Replies:** 0\
**Last updated:** [January 30, 2026, 11:59am UTC](https://discuss.hangfire.io/t/hangfire-delete-record-expiry-record/11409 "2026-01-30T11:59:44Z")

</div>

Is there a way to delete a record in the hangfire database or a way to know how to expire a record I can see the set command but not the parameter to locate the record The record in hangfire did not receive its expiryA…

---

## [.net 10 and blazor app, hangfire community vs hangfire pro](https://discuss.hangfire.io/t/net-10-and-blazor-app-hangfire-community-vs-hangfire-pro/11407)

<div class="topic-metadata">

**Author:** [@murphymj5209](https://discuss.hangfire.io/u/murphymj5209)\
**Replies:** 0\
**Last updated:** [January 27, 2026, 2:08am UTC](https://discuss.hangfire.io/t/net-10-and-blazor-app-hangfire-community-vs-hangfire-pro/11407 "2026-01-27T02:08:19Z")

</div>

I am a newbie to hangfire, i have a solution that is blazor .net 10 backend, works with hangfire community, the current version. I know of some of the limitations of the community, but the hangfire pro has a few items I…

---

## [Best configuration for Hangfire Deployment](https://discuss.hangfire.io/t/best-configuration-for-hangfire-deployment/11372)

<div class="topic-metadata">

**Author:** [@matteo\_rigoni](https://discuss.hangfire.io/u/matteo_rigoni)\
**Replies:** 3\
**Last updated:** [December 9, 2025, 5:35pm UTC](https://discuss.hangfire.io/t/best-configuration-for-hangfire-deployment/11372 "2025-12-09T17:35:35Z")

</div>

HI, i use Hangfire from several years, in differnt way (IIs, widnwos service and some experiment as docker). I need to use it i a very large projects with milion of jobs at week. Based on you experience which is best de…

---

## [How to modify wokercount or enable and remove recurring jobs without downtime](https://discuss.hangfire.io/t/how-to-modify-wokercount-or-enable-and-remove-recurring-jobs-without-downtime/11350)

<div class="topic-metadata">

**Author:** [@Jiaxiang\_Li](https://discuss.hangfire.io/u/Jiaxiang_Li)\
**Replies:** 2\
**Last updated:** [July 26, 2025, 2:31am UTC](https://discuss.hangfire.io/t/how-to-modify-wokercount-or-enable-and-remove-recurring-jobs-without-downtime/11350 "2025-07-26T02:31:39Z")

</div>

I’m using: Hangfire.AspNetCore Hangfire.Autofac FaceIT.Hangfire.Tags.Redis.StackExchange I have some long-running, resource-intensive tasks. Therefore, I need to: Dynamically adjust the WorkerCount based on system l…

---

## [Hangfire Pro + Azure Redis: How to Use Managed Identity Instead of Connection Strings?](https://discuss.hangfire.io/t/hangfire-pro-azure-redis-how-to-use-managed-identity-instead-of-connection-strings/11353)

<div class="topic-metadata">

**Author:** [@smadireddy\_civie](https://discuss.hangfire.io/u/smadireddy_civie)\
**Replies:** 0\
**Last updated:** [July 18, 2025, 3:08am UTC](https://discuss.hangfire.io/t/hangfire-pro-azure-redis-how-to-use-managed-identity-instead-of-connection-strings/11353 "2025-07-18T03:08:06Z")

</div>

Hi everyone, We’re using Hangfire Pro and are looking to connect Hangfire to Azure Cache for Redis using Azure Managed Identity for authentication, instead of relying on traditional connection strings with embedded cred…

---

## [Creating a BatchJob scoped service using Hangfire.Autofac](https://discuss.hangfire.io/t/creating-a-batchjob-scoped-service-using-hangfire-autofac/11310)

<div class="topic-metadata">

**Author:** [@Cynicszm](https://discuss.hangfire.io/u/Cynicszm)\
**Replies:** 4\
**Last updated:** [May 29, 2025, 8:10am UTC](https://discuss.hangfire.io/t/creating-a-batchjob-scoped-service-using-hangfire-autofac/11310 "2025-05-29T08:10:19Z")

</div>

Hi, We create Batch jobs with nested Batches and Jobs. The JobActivator uses the Hangfire.Autofac package and UseAutofacActivator when updating IGlobalConfiguration We would like to have a type registered at the BatchJ…

---

## [Exception at start on Hosting failed to start](https://discuss.hangfire.io/t/exception-at-start-on-hosting-failed-to-start/11151)

<div class="topic-metadata">

**Author:** [@oscar.hernandez](https://discuss.hangfire.io/u/oscar.hernandez)\
**Replies:** 2\
**Last updated:** [May 11, 2025, 12:08pm UTC](https://discuss.hangfire.io/t/exception-at-start-on-hosting-failed-to-start/11151 "2025-05-11T12:08:34Z")

</div>

Hi, i am reciving this error: fail: Microsoft.Extensions.Hosting.Internal.Host\[11\] \*\* Hosting failed to start\*\* \*\* System.IO.IOException: Failed to bind to address http://127.0.0.1:5000: address already in u…

---

## [Possible memory leak when running hangfire in linux container](https://discuss.hangfire.io/t/possible-memory-leak-when-running-hangfire-in-linux-container/10923)

<div class="topic-metadata">

**Author:** [@asindici](https://discuss.hangfire.io/u/asindici)\
**Replies:** 15\
**Last updated:** [April 23, 2025, 10:12pm UTC](https://discuss.hangfire.io/t/possible-memory-leak-when-running-hangfire-in-linux-container/10923 "2025-04-23T22:12:30Z")

</div>

Hi everyone! We are running Hangfire 1.8.14 with Hangfire.PostgreSql 1.20.9 on .NET Core 8. It seems that there is a memory leak that only occurs when running it in a linux container deployed to Azure container apps. W…

---

## [Hangfire Pro Core - records removed from JOB table every time app pool is restarted](https://discuss.hangfire.io/t/hangfire-pro-core-records-removed-from-job-table-every-time-app-pool-is-restarted/11226)

<div class="topic-metadata">

**Author:** [@lsudnitsyn](https://discuss.hangfire.io/u/lsudnitsyn)\
**Replies:** 0\
**Last updated:** [March 21, 2025, 8:05pm UTC](https://discuss.hangfire.io/t/hangfire-pro-core-records-removed-from-job-table-every-time-app-pool-is-restarted/11226 "2025-03-21T20:05:15Z")

</div>

We use hangfire pro and we created MVC Web service (.NET 8.0). Every time I restart application pool (IIS) records from Job table are deleted. Did anybody has this issue? How can I fix this issue?

---

## [Hangfire webApp stops at 2:00AM EST](https://discuss.hangfire.io/t/hangfire-webapp-stops-at-2-00am-est/11200)

<div class="topic-metadata">

**Author:** [@sandippatel](https://discuss.hangfire.io/u/sandippatel)\
**Replies:** 2\
**Last updated:** [March 18, 2025, 2:36pm UTC](https://discuss.hangfire.io/t/hangfire-webapp-stops-at-2-00am-est/11200 "2025-03-18T14:36:20Z")

</div>

we have hangfire jobs implemented with .NET 8 web App. after deployment we have seen job(s) runs fine all other time except at and after 2:00AM EST. doesn’t log anything which may lead us to additional detail. has anyone…

---

## [Looking for coding best practices for methods for recurring tasks in ASP.NET Core](https://discuss.hangfire.io/t/looking-for-coding-best-practices-for-methods-for-recurring-tasks-in-asp-net-core/11132)

<div class="topic-metadata">

**Author:** [@philipd](https://discuss.hangfire.io/u/philipd)\
**Replies:** 1\
**Last updated:** [January 24, 2025, 9:22pm UTC](https://discuss.hangfire.io/t/looking-for-coding-best-practices-for-methods-for-recurring-tasks-in-asp-net-core/11132 "2025-01-24T21:22:43Z")

</div>

I’m looking for some guidance, suggestions, “best practices”, etc. for methods to be scheduled as background or recurring jobs in Hangfire, I have a small-scale Hangfire project at work, currently running several recurr…

---

## [Setting job expiration for Redis job storage doesn't work properly](https://discuss.hangfire.io/t/setting-job-expiration-for-redis-job-storage-doesnt-work-properly/11110)

<div class="topic-metadata">

**Author:** [@sncf-pedro-de-rycker](https://discuss.hangfire.io/u/sncf-pedro-de-rycker)\
**Replies:** 2\
**Last updated:** [January 10, 2025, 9:43am UTC](https://discuss.hangfire.io/t/setting-job-expiration-for-redis-job-storage-doesnt-work-properly/11110 "2025-01-10T09:43:35Z")

</div>

It looks like when I set the job expiration through filters or with “WithJobExpirationTimeout”, it only works on the default queue, not on the other ones who are setted to the default 7 days.

---

## [Hangfire in AWS Beanstalk behind Load Balancer](https://discuss.hangfire.io/t/hangfire-in-aws-beanstalk-behind-load-balancer/6684)

<div class="topic-metadata">

**Author:** [@Gerald](https://discuss.hangfire.io/u/Gerald)\
**Replies:** 2\
**Last updated:** [December 19, 2024, 2:19am UTC](https://discuss.hangfire.io/t/hangfire-in-aws-beanstalk-behind-load-balancer/6684 "2024-12-19T02:19:43Z")

</div>

We have implemented Hangfire within the AWS world using Elastic Beanstalk for our .Net Core API. We have configured our environments (Production, Staging, QA, and Development) to be load balancing. For Production we have…

---

## [Best way to tune degree of Concurrency depending on Parameters](https://discuss.hangfire.io/t/best-way-to-tune-degree-of-concurrency-depending-on-parameters/11077)

<div class="topic-metadata">

**Author:** [@Mathias](https://discuss.hangfire.io/u/Mathias)\
**Replies:** 0\
**Last updated:** [December 18, 2024, 11:30am UTC](https://discuss.hangfire.io/t/best-way-to-tune-degree-of-concurrency-depending-on-parameters/11077 "2024-12-18T11:30:18Z")

</div>

We want to fine-tune the degree of concurrency depending on parameter values. Given many buckets, each with the same multiple segments Bucket 1 Segment A Item 1A-1 Item 1A-2 Segment C Item 1C-1 Bucket 2 Segm…

---

## [Issue with Hangfire lock timeout](https://discuss.hangfire.io/t/issue-with-hangfire-lock-timeout/11048)

<div class="topic-metadata">

**Author:** [@Tango](https://discuss.hangfire.io/u/Tango)\
**Replies:** 0\
**Last updated:** [December 6, 2024, 1:18pm UTC](https://discuss.hangfire.io/t/issue-with-hangfire-lock-timeout/11048 "2024-12-06T13:18:07Z")

</div>

Good afternoon, I have this error when I run a BackgroundJob (not recursive, it’s a one-shot job): Hangfire.Storage.DistributedLockTimeoutException: Hangfire.Storage.DistributedLockTimeoutException: Timeout expired. Th…

---

## [Hangfire Job Load Exception in Microservices Architecture](https://discuss.hangfire.io/t/hangfire-job-load-exception-in-microservices-architecture/11009)

<div class="topic-metadata">

**Author:** [@elango-sengottaiyan](https://discuss.hangfire.io/u/elango-sengottaiyan)\
**Replies:** 0\
**Last updated:** [November 17, 2024, 6:23pm UTC](https://discuss.hangfire.io/t/hangfire-job-load-exception-in-microservices-architecture/11009 "2024-11-17T18:23:25Z")

</div>

I’m facing a Hangfire.Common.JobLoadException while working with a Hangfire job in a microservices architecture that utilizes the StackExchange.Redis package and single AWS ElastiCache. The job is associated with three s…

---

## [Could not resolve assembly ‘Name’](https://discuss.hangfire.io/t/could-not-resolve-assembly-name/10939)

<div class="topic-metadata">

**Author:** [@hhadra](https://discuss.hangfire.io/u/hhadra)\
**Replies:** 6\
**Last updated:** [November 13, 2024, 1:50pm UTC](https://discuss.hangfire.io/t/could-not-resolve-assembly-name/10939 "2024-11-13T13:50:31Z")

</div>

I configured a windows service using .net 6.0 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 job complete…

---

## [Unofficial - example of setting up a .NET 8 (Core) Razor/minimal Web app with Hangfire](https://discuss.hangfire.io/t/unofficial-example-of-setting-up-a-net-8-core-razor-minimal-web-app-with-hangfire/10875)

<div class="topic-metadata">

**Author:** [@philipd](https://discuss.hangfire.io/u/philipd)\
**Replies:** 4\
**Last updated:** [August 30, 2024, 6:39pm UTC](https://discuss.hangfire.io/t/unofficial-example-of-setting-up-a-net-8-core-razor-minimal-web-app-with-hangfire/10875 "2024-08-30T18:39:59Z")

</div>

I’m learning about both ASP.NET Core (migrating from long-time ASP.NET Framework development) and Hangfire. I have a small-scale test project working, based on lots of reading in Hangfire documentation and forum and othe…

---

## [Implementing Conditional Retry on Job Schedule](https://discuss.hangfire.io/t/implementing-conditional-retry-on-job-schedule/10966)

<div class="topic-metadata">

**Author:** [@RohitCLy](https://discuss.hangfire.io/u/RohitCLy)\
**Replies:** 0\
**Last updated:** [October 9, 2024, 11:42am UTC](https://discuss.hangfire.io/t/implementing-conditional-retry-on-job-schedule/10966 "2024-10-09T11:42:29Z")

</div>

I’m working on a project where I have different types of scheduled jobs, some of which run very frequently (every minute) while others run less often. I’m trying to implement a retry strategy that takes into account the …

---

## [Set hours interval to run jobs every 5 minutes every day](https://discuss.hangfire.io/t/set-hours-interval-to-run-jobs-every-5-minutes-every-day/10962)

<div class="topic-metadata">

**Author:** [@l.blasi](https://discuss.hangfire.io/u/l.blasi)\
**Replies:** 0\
**Last updated:** [October 8, 2024, 10:28am UTC](https://discuss.hangfire.io/t/set-hours-interval-to-run-jobs-every-5-minutes-every-day/10962 "2024-10-08T10:28:53Z")

</div>

Hi, i created a .net core web api with hangfire server. i set intervals in cron expressions defining hour ranges using expressions ‘\*/5 12-13 \* \* \*’ to specify that a job should run every 5 minutes between 12 PM and 1:59…

---

## [Hangfire.MySql.MySqlDistributedLockException: cannot acquire lock](https://discuss.hangfire.io/t/hangfire-mysql-mysqldistributedlockexception-cannot-acquire-lock/10960)

<div class="topic-metadata">

**Author:** [@sundar\_raj](https://discuss.hangfire.io/u/sundar_raj)\
**Replies:** 0\
**Last updated:** [October 8, 2024, 7:18am UTC](https://discuss.hangfire.io/t/hangfire-mysql-mysqldistributedlockexception-cannot-acquire-lock/10960 "2024-10-08T07:18:06Z")

</div>

Dear Team, I am using Hangfire for many years. We have messaging queue and we are enqueuing the every message into Hangfire to run the specific method. Some times we are receiving the below error and not able to find th…

---

## [Setting retry strategy for Hangfire initial migration](https://discuss.hangfire.io/t/setting-retry-strategy-for-hangfire-initial-migration/10959)

<div class="topic-metadata">

**Author:** [@thelever](https://discuss.hangfire.io/u/thelever)\
**Replies:** 0\
**Last updated:** [October 7, 2024, 11:35am UTC](https://discuss.hangfire.io/t/setting-retry-strategy-for-hangfire-initial-migration/10959 "2024-10-07T11:35:20Z")

</div>

I was wondering if it is possible to specify a retry policy to be used when Hangfire runs its initial migration on startup. Specifically, running Hangfire in an Aspire application on Apple Silicon, there is a known issue…

---

## [Unhandled exceptions in a job + Redis as backplane](https://discuss.hangfire.io/t/unhandled-exceptions-in-a-job-redis-as-backplane/10950)

<div class="topic-metadata">

**Author:** [@skitsur](https://discuss.hangfire.io/u/skitsur)\
**Replies:** 4\
**Last updated:** [October 4, 2024, 5:39am UTC](https://discuss.hangfire.io/t/unhandled-exceptions-in-a-job-redis-as-backplane/10950 "2024-10-04T05:39:44Z")

</div>

Hello! Im trying out Redis as backplane for our application (.net8) but im having some issues. Everytime an unhandled exception is thrown from a job it will give me "System.InvalidOperationException Transaction was di…

---

## [Filter to delay jobs](https://discuss.hangfire.io/t/filter-to-delay-jobs/10934)

<div class="topic-metadata">

**Author:** [@Jan](https://discuss.hangfire.io/u/Jan)\
**Replies:** 1\
**Last updated:** [September 27, 2024, 8:08pm UTC](https://discuss.hangfire.io/t/filter-to-delay-jobs/10934 "2024-09-27T20:08:33Z")

</div>

I would like to implement a filter that can delay processing of a job based on some custom logic. As a trivial example, how could I, using a filter, delay processing of a job if it is about to process on a Sunday? In p…

---

## [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…

---

## [How to decide if a server can run a scheduled job or not based on appsettings value?](https://discuss.hangfire.io/t/how-to-decide-if-a-server-can-run-a-scheduled-job-or-not-based-on-appsettings-value/10900)

<div class="topic-metadata">

**Author:** [@aswinfrancis91](https://discuss.hangfire.io/u/aswinfrancis91)\
**Replies:** 1\
**Last updated:** [September 17, 2024, 1:13pm UTC](https://discuss.hangfire.io/t/how-to-decide-if-a-server-can-run-a-scheduled-job-or-not-based-on-appsettings-value/10900 "2024-09-17T13:13:37Z")

</div>

I have dotnet project that currently uses hangfire. In Startup.cs\>Configure() I have written code below to decide if hangfire should be available in the server based on a configuration value in appsettings or not. The co…

[Next page](https://discuss.hangfire.io/tag/aspnetcore/30.md?match_all_tags=true&page=1&tags%5B%5D=aspnetcore)
