# \#configuration

**URL:** https://discuss.hangfire.io/tag/configuration/8.md

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

---

## [Getting a System.NotSupported exception thrown by Hangfire on every startup](https://discuss.hangfire.io/t/getting-a-system-notsupported-exception-thrown-by-hangfire-on-every-startup/10680)

<div class="topic-metadata">

**Author:** [@lordfeck](https://discuss.hangfire.io/u/lordfeck)\
**Replies:** 0\
**Last updated:** [May 10, 2024, 2:25pm UTC](https://discuss.hangfire.io/t/getting-a-system-notsupported-exception-thrown-by-hangfire-on-every-startup/10680 "2024-05-10T14:25:44Z")

</div>

Greetings, Every time I start my Asp.Net web application, the following exception is thrown by Hangfire: System.NotSupportedException: Current storage implementation does not support the 'Connection.BatchedGetFirstByLo…

---

## [Background method configure](https://discuss.hangfire.io/t/background-method-configure/10251)

<div class="topic-metadata">

**Author:** [@Daniel](https://discuss.hangfire.io/u/Daniel)\
**Replies:** 4\
**Last updated:** [September 25, 2023, 6:33am UTC](https://discuss.hangfire.io/t/background-method-configure/10251 "2023-09-25T06:33:52Z")

</div>

Hello, I’m calling a background method with delay like this: jobId = BackgroundJob.Schedule((x) =\> x.SendEmail(parameters), timespan); The problem is that if the day it has to be executed is a weekend, it delays the e…

---

## [Anonymous functions, delegates and lambda expressions aren't supported in job method parameters](https://discuss.hangfire.io/t/anonymous-functions-delegates-and-lambda-expressions-arent-supported-in-job-method-parameters/10256)

<div class="topic-metadata">

**Author:** [@S-alireza-alavi](https://discuss.hangfire.io/u/S-alireza-alavi)\
**Replies:** 0\
**Last updated:** [September 20, 2023, 8:09am UTC](https://discuss.hangfire.io/t/anonymous-functions-delegates-and-lambda-expressions-arent-supported-in-job-method-parameters/10256 "2023-09-20T08:09:49Z")

</div>

I’m using Hangfire for first time on a .Net Core Application… I’ve wrote a Job like this: using MyTask.Data; using MyTask.Models; namespace MyTask { public class CandleStickJob { private readonly ILogger \_logger; …

---

## [JobExpirationTimeout less than 1 hour?](https://discuss.hangfire.io/t/jobexpirationtimeout-less-than-1-hour/10049)

<div class="topic-metadata">

**Author:** [@apetkovic](https://discuss.hangfire.io/u/apetkovic)\
**Replies:** 1\
**Last updated:** [June 30, 2023, 2:12am UTC](https://discuss.hangfire.io/t/jobexpirationtimeout-less-than-1-hour/10049 "2023-06-30T02:12:17Z")

</div>

Is there a way to set the JobExpirationTimeout to less than one hour? We process a large volume of jobs that results in high memory requirements in Redis. I’ve attempted to use the WithJobExpirationTimeout extension meth…

---

## [Need help with Hangfire installation in VB.NET Web Application 2023](https://discuss.hangfire.io/t/need-help-with-hangfire-installation-in-vb-net-web-application-2023/10026)

<div class="topic-metadata">

**Author:** [@mike\_singer](https://discuss.hangfire.io/u/mike_singer)\
**Replies:** 0\
**Last updated:** [June 14, 2023, 4:54pm UTC](https://discuss.hangfire.io/t/need-help-with-hangfire-installation-in-vb-net-web-application-2023/10026 "2023-06-14T16:54:56Z")

</div>

I am currently working on a VB.NET Web Application and I’m trying to integrate Hangfire into my project. However, I’m facing some difficulties in getting Hangfire installed properly. Since my programming skills are at a …

---

## [Using Dependency Injection with Hangfire .NET Core Console app](https://discuss.hangfire.io/t/using-dependency-injection-with-hangfire-net-core-console-app/9499)

<div class="topic-metadata">

**Author:** [@johnson7](https://discuss.hangfire.io/u/johnson7)\
**Replies:** 7\
**Last updated:** [October 30, 2022, 11:23pm UTC](https://discuss.hangfire.io/t/using-dependency-injection-with-hangfire-net-core-console-app/9499 "2022-10-30T23:23:48Z")

</div>

Hello everyone, I am trying to implement Hangfire using a console .NET core app for both Client and Server. The Client app is implemented using the Microsoft Default DI Container. I have made some research and impleme…

---

## [Hangfire fetching database every 15 second](https://discuss.hangfire.io/t/hangfire-fetching-database-every-15-second/8813)

<div class="topic-metadata">

**Author:** [@saleh\_ibrahim](https://discuss.hangfire.io/u/saleh_ibrahim)\
**Replies:** 6\
**Last updated:** [December 8, 2021, 8:09am UTC](https://discuss.hangfire.io/t/hangfire-fetching-database-every-15-second/8813 "2021-12-08T08:09:51Z")

</div>

I use Recurring Job to call my function Test() with Cron.Daily() . I does not need to fetch database every 15 second , my function executed every day only once . how to stop hangfire to fetch database every 15 second …

---

## [Scheduling a recurring job with a dynamic type from a config solution](https://discuss.hangfire.io/t/scheduling-a-recurring-job-with-a-dynamic-type-from-a-config-solution/4346)

<div class="topic-metadata">

**Author:** [@ragnarstolsmark](https://discuss.hangfire.io/u/ragnarstolsmark)\
**Replies:** 0\
**Last updated:** [February 12, 2018, 4:42pm UTC](https://discuss.hangfire.io/t/scheduling-a-recurring-job-with-a-dynamic-type-from-a-config-solution/4346 "2018-02-12T16:42:35Z")

</div>

I have created a gist that show how you can schedule a recurring job with a dynamic class chosen at runtime and possibly loaded via a JSON or XML configuration file: https://gist.github.com/ragnarstolsmark/c720bc3f47579f…

---

## [Global Worker Count Limit For Servers / Queues](https://discuss.hangfire.io/t/global-worker-count-limit-for-servers-queues/4281)

<div class="topic-metadata">

**Author:** [@global-count](https://discuss.hangfire.io/u/global-count)\
**Replies:** 0\
**Last updated:** [January 24, 2018, 3:48pm UTC](https://discuss.hangfire.io/t/global-worker-count-limit-for-servers-queues/4281 "2018-01-24T15:48:30Z")

</div>

Right now our production app had several servers defined to allow for different worker counts for different queues. This works great, but recently we decided we need to enforce a global worker count of sorts. Is this pos…

---

## [Setting Event Properties for Hangfire Logging (with NLog)](https://discuss.hangfire.io/t/setting-event-properties-for-hangfire-logging-with-nlog/2777)

<div class="topic-metadata">

**Author:** [@anon4374851](https://discuss.hangfire.io/u/anon4374851)\
**Replies:** 1\
**Last updated:** [December 29, 2016, 7:01am UTC](https://discuss.hangfire.io/t/setting-event-properties-for-hangfire-logging-with-nlog/2777 "2016-12-29T07:01:16Z")

</div>

Hi there Forum, I am looking for a way to set the event properties from within hangfire when it does the call to log events. In my NLog.Config file I have something like this: \<parameter layout="${event-properties:it…

---

## [Unity DI in multiple layers](https://discuss.hangfire.io/t/unity-di-in-multiple-layers/2789)

<div class="topic-metadata">

**Author:** [@larsmeldgaard](https://discuss.hangfire.io/u/larsmeldgaard)\
**Replies:** 0\
**Last updated:** [December 25, 2016, 5:17pm UTC](https://discuss.hangfire.io/t/unity-di-in-multiple-layers/2789 "2016-12-25T17:17:15Z")

</div>

I’m trying to set together a system that uses Hangfire with Unity DI framework. I get this error when the job is running: Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type …

---

## [SQL Server 2008 (10.0.x)](https://discuss.hangfire.io/t/sql-server-2008-10-0-x/2425)

<div class="topic-metadata">

**Author:** [@Shravan\_Sunder\_Firme](https://discuss.hangfire.io/u/Shravan_Sunder_Firme)\
**Replies:** 0\
**Last updated:** [September 14, 2016, 5:22pm UTC](https://discuss.hangfire.io/t/sql-server-2008-10-0-x/2425 "2016-09-14T17:22:39Z")

</div>

Hi, I've tested hangfire with 2008 (10.0.x) and it seems to work. However the documentation says you need R2. Is there a reason why 2008 won't work? Any known issues? thanks, Shravan

---

## [AuthorizationFilters](https://discuss.hangfire.io/t/authorizationfilters/2391)

<div class="topic-metadata">

**Author:** [@mma](https://discuss.hangfire.io/u/mma)\
**Replies:** 0\
**Last updated:** [September 2, 2016, 7:51pm UTC](https://discuss.hangfire.io/t/authorizationfilters/2391 "2016-09-02T19:51:17Z")

</div>

just upgraded from 1.59 to 1.64 I get two related obsolete messaged related to Authorization. In: public static void ConfigureHangfire(IAppBuilder app) I use: app.UseHangfireDashboard("/hangfire", new DashboardOptions {…

---

## [Successful Backups are not removed when using custom Expire Attribute](https://discuss.hangfire.io/t/successful-backups-are-not-removed-when-using-custom-expire-attribute/2272)

<div class="topic-metadata">

**Author:** [@tjackadams](https://discuss.hangfire.io/u/tjackadams)\
**Replies:** 1\
**Last updated:** [August 4, 2016, 2:36pm UTC](https://discuss.hangfire.io/t/successful-backups-are-not-removed-when-using-custom-expire-attribute/2272 "2016-08-04T14:36:43Z")

</div>

Hello, We have quite a few recurring background jobs running on our server and the succeeded logs can grow quite large so I have a custom attribute which allows you to set the expiration time for a recurring backup job. …

---

## [Spawning new servers on app startup](https://discuss.hangfire.io/t/spawning-new-servers-on-app-startup/2012)

<div class="topic-metadata">

**Author:** [@luisvsilva](https://discuss.hangfire.io/u/luisvsilva)\
**Replies:** 1\
**Last updated:** [May 9, 2016, 7:37am UTC](https://discuss.hangfire.io/t/spawning-new-servers-on-app-startup/2012 "2016-05-09T07:37:31Z")

</div>

On Application startup I have: app.UseHangfireServer(); But this seems to spawn new servers on App startup...is this expected behaviour....or should I only have one server? How do I prevent this?

---

## [Dashboard Access with windows authentication](https://discuss.hangfire.io/t/dashboard-access-with-windows-authentication/294)

<div class="topic-metadata">

**Author:** [@dohsan](https://discuss.hangfire.io/u/dohsan)\
**Replies:** 1\
**Last updated:** [October 30, 2015, 8:04am UTC](https://discuss.hangfire.io/t/dashboard-access-with-windows-authentication/294 "2015-10-30T08:04:09Z")

</div>

After having issues accessing the dashboard, I found in the user guide that access by default is only for local requests http://docs.hangfire.io/en/latest/users-guide/deployment-to-production/configuring-authorization.…

---

## [Configuring and using Multiple Queues](https://discuss.hangfire.io/t/configuring-and-using-multiple-queues/1304)

<div class="topic-metadata">

**Author:** [@anagram](https://discuss.hangfire.io/u/anagram)\
**Replies:** 2\
**Last updated:** [September 11, 2015, 8:57am UTC](https://discuss.hangfire.io/t/configuring-and-using-multiple-queues/1304 "2015-09-11T08:57:49Z")

</div>

Hi all, i'm in trouble with configuring and using multiple queues. Here is the content of my startup class: var options = new DashboardOptions { AppPath = VirtualPathUtility.ToAbsolute("~"…

---

## [Logging with NLOG.config in seperate file](https://discuss.hangfire.io/t/logging-with-nlog-config-in-seperate-file/1294)

<div class="topic-metadata">

**Author:** [@Flyff\_Sebulba](https://discuss.hangfire.io/u/Flyff_Sebulba)\
**Replies:** 1\
**Last updated:** [September 8, 2015, 8:41am UTC](https://discuss.hangfire.io/t/logging-with-nlog-config-in-seperate-file/1294 "2015-09-08T08:41:17Z")

</div>

I am trying to seperate my log files with NLog. \<target name="logfile" xsi:type="File" fileName="c:\\tmp\\log\\app.${shortdate}.log" layout="${longdate} ${uppercase:${level}} ${message}"\> \</target\> \<target name="…

---

## [Hangfire configuration for SQL Server](https://discuss.hangfire.io/t/hangfire-configuration-for-sql-server/605)

<div class="topic-metadata">

**Author:** [@canning\_s](https://discuss.hangfire.io/u/canning_s)\
**Replies:** 2\
**Last updated:** [March 27, 2015, 9:21am UTC](https://discuss.hangfire.io/t/hangfire-configuration-for-sql-server/605 "2015-03-27T09:21:25Z")

</div>

I am coding a MVC 5 internet application, and am wishing to use Hangfire for recurring tasks. How can I setup Hangfire to use SQL Server storage without specifying this in the Startup.Auth ConfigureAuth(IAppBuilder app) …

---

## [How can hangfire dashboard gets the authorization header per request](https://discuss.hangfire.io/t/how-can-hangfire-dashboard-gets-the-authorization-header-per-request/709)

<div class="topic-metadata">

**Author:** [@reggieboyYEAH](https://discuss.hangfire.io/u/reggieboyYEAH)\
**Replies:** 3\
**Last updated:** [February 25, 2015, 2:35pm UTC](https://discuss.hangfire.io/t/how-can-hangfire-dashboard-gets-the-authorization-header-per-request/709 "2015-02-25T14:35:11Z")

</div>

I'm trying to secure the dashboard via claims authentication. I have a separate auth server that issue claims. app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions() { }); …

---

## [Dashboard returns 404 for application](https://discuss.hangfire.io/t/dashboard-returns-404-for-application/633)

<div class="topic-metadata">

**Author:** [@AndrewMace](https://discuss.hangfire.io/u/AndrewMace)\
**Replies:** 5\
**Last updated:** [February 11, 2015, 3:04pm UTC](https://discuss.hangfire.io/t/dashboard-returns-404-for-application/633 "2015-02-11T15:04:50Z")

</div>

If I set up my hangfire as a website I am able to access /hangfire dashboard just fine. However when I use it as an application within a site I get a 404 when trying to access the dashboard. Note: I am using HangfireBo…

---

## [Help with configuring MSMQ](https://discuss.hangfire.io/t/help-with-configuring-msmq/615)

<div class="topic-metadata">

**Author:** [@pdagosta](https://discuss.hangfire.io/u/pdagosta)\
**Replies:** 3\
**Last updated:** [January 29, 2015, 3:35pm UTC](https://discuss.hangfire.io/t/help-with-configuring-msmq/615 "2015-01-29T15:35:38Z")

</div>

The documentation for MSMQ states: To use MSMQ queues, you should do the following steps: Create them manually on each host. Don’t forget to grant appropriate permissions. Register all MSMQ queues in current SqlServerS…

---

## [The invoked member is not supported in a dynamic assembly](https://discuss.hangfire.io/t/the-invoked-member-is-not-supported-in-a-dynamic-assembly/526)

<div class="topic-metadata">

**Author:** [@danipen](https://discuss.hangfire.io/u/danipen)\
**Replies:** 4\
**Last updated:** [January 14, 2015, 9:10am UTC](https://discuss.hangfire.io/t/the-invoked-member-is-not-supported-in-a-dynamic-assembly/526 "2015-01-14T09:10:50Z")

</div>

I have configured my MVC application as follows: public class Startup { public void Configuration(IAppBuilder app) { app.UseHangfire(config =\> { config.UseSqlServerStorage("myconnstr…

---

## [A problem with Multiple queues processing](https://discuss.hangfire.io/t/a-problem-with-multiple-queues-processing/277)

<div class="topic-metadata">

**Author:** [@MookieFumi](https://discuss.hangfire.io/u/MookieFumi)\
**Replies:** 1\
**Last updated:** [October 7, 2014, 9:21am UTC](https://discuss.hangfire.io/t/a-problem-with-multiple-queues-processing/277 "2014-10-07T09:21:06Z")

</div>

Hi! I'm doing the first tests with this incredible framework and I have encountered the following problem. The queues do not work me, I have two queues (critical and default) and always performed the same queue. …
