We need to be able to provide a custom auto-start provider for a website we are installing, so that certain services can be enabled as soon as the application pool starts.
I can set the App Pool mode to AlwaysRunning using the Advanced Installer UI, and I can also see that there is an Enable Pre-loading checkbox on the Website settings - what does this do when it is switched on?
However I can't see any way of setting an auto-start provider for the website, as required for providing this configuration in %WINDIR%\System32\inetsrv\config\applicationHost.config:
Code: Select all
<sites>
<site name="MySite" id="1">
<application path="/" serviceAutoStartEnabled="true" serviceAutoStartProvider="ApplicationPreload" />
</site>
</sites>
<!-- Just AFTER closing the `sites` element AND AFTER `webLimits` tag -->
<serviceAutoStartProviders>
<add name="ApplicationPreload" type="WebApplication1.ApplicationPreload, WebApplication1" />
</serviceAutoStartProviders>
Thanks,
Sam