To auto restart asp.net core application running by IIS after remote server restart, I already did these steps but after restarting server, the application still not being restarted automatically by the ApplicationInitialization module, and so every time I need to make a first request to start the asp.net app by myself.
Steps I did:
- Set the Application Pool to StartMode=AlwaysRunning.
- Set the site (from Advance settings) to preloadEnabled=true.
- Install the Application Initialization feature to the Windows installation.
- In Configuration Editor, on Web.config on system.webServer/applicationInitialization, set doAppInitAfterRestart to True
- In Configuration Editor, on Web.config on system.webServer/applicationInitialization, add initializationPage “/”, hostNmae “”
- In Configuration Editor, on Web.config on system.webServer/applicationInitialization, add initializationPage “/about”, hostNmae “localhost”
The strange thing is, I did the same steps and the same configuration setting to my local PC IIS server, the auto restarting process works fine and I can see a dummy request from 127.0.0.1 as I used Serilog to log every request.
So the ApplicationInitialization module is working on my local PC.
Anybody know what other things that I may be missing on the remote server?
Or is there any debug methods I can try to see if the ApplicationInitialization module is working properly on the remote server?