Hi,
I’ve read many posts, but I cannot get this to work.
I’ve also read the official documentation, especially this part (this is from the documentation):
I set everything in IIS as written in documentation, but after recycling app pool / restarting, the application does not start.
I need it to be always running because some regularly scheduled jobs need to run everyday.
I know I can use Task Scheduler to ping Hangfire, but then what’s the point of using Hangfire in the first place.
App version: .NET 8
IIS version: 10
Windows Server 2019
Things I did
IIS:
- installed Application Initialization module
application pool:
- set .NET CLR version to 4.0
- set managed pipeline mode to 4.0
- set start mode to AlwaysRunning
- set Idle Time-Out (minutes) to 0
site:
- set Preload Enabled to true
- Configuration Manager → system.webServer/applicationInitialization
From: ApplicationHost.config
set doAppInitAfterRestart to True
added hostName and initializationPage to Collection Editor
Screenshots from IIS in server:
Please help.