How to properly autostart an asp.net application in IIS10 : <p>I'm trying to get my ASP.NET application to automatically start whenever the application pool is running.</p>

<p>As per the lots and lots of references online I have already done the following:</p>

<ul>
<li>Set the Application Pool to <code>StartMode=AlwaysRunning</code></li>
<li>Set the site in question (that belongs to beforementioned Pool) to <code>preloadEnabled=true</code></li>
<li>Install the <code>Application Initialization</code> feature to the Windows installation</li>
<li>Add the <code>&lt;applicationInitialization&gt;</code> node to the web.config's <code>&lt;system.webServer&gt;</code> node</li>
</ul>

<p>The web application is based on Owin and has a simple log4net logging statement in it's <code>Startup.Configuration()</code> method. Now when restarting IIS I see that the w3svc.exe process is running, so I know the <code>StartMode=AlwaysRunning</code> is working. There are however no logging messages in the log file.</p>

<p>Navigating to any url (even a nonexisting one) in the application will start the app and add the log line.</p>

<p>Because of the actual work that's done in the startup of the application I really want the application to truly preload, but I seem to be unable to get it done.</p>

<p>Searching this site I have unfortunately not been able to find a solution. </p>

<p>Thanks in advance.</p>
