I’m trying to follow the instructions in the the “Enabling Service Auto-start” section to chage the applicationHost.config file (http://hangfire.readthedocs.org/en/latest/deployment-to-production/making-aspnet-app-always-running.html) after having rolled hangfire into production. I’m having trouble getting this part right:
<serviceAutoStartProviders> <add name="ApplicationPreload" type="MyApp.Web.ApplicationPreload, MyApp.Web" /> </serviceAutoStartProviders>
I have added the section immediately after (which follows immediately after )
The application pool simply stops (and I get a 503 error).
I think I’m not setting the type right, however I’m unsure how to figure the right syntax.
When I remove the section the application pool does not stop, and Hangfire works, however, I fear it will “not always run”.
How can I find the correct syntax for in my setting?