I have an asp.net core webapi with hangfire to do some recurring jobs.
I’m struggling on how to run the recurring jobs after the IIS is restarted.
I am on a IIS 8.5
- IIS Feature App Initialization is installed
- alwaysRunning (in AppPool) and preloadEnabled (site) are both true
- I’ve added in the web.config the <system.webServer> part which has an initializationPage="/controller/action" element.
Still when restarting the IIS, I need to manually open a URL from this webapi so everything is up and running.
Does anyone have additional suggestions what am I missing?
I’ve looked up the documentation making-aspnet-app-always-running but this I guess does not work for asp.net core webapi because there is no “System.Web.Hosting.IProcessHostPreloadClient” namespace.
Any hints are warmly welcome!