title: .NET 6.0 MVC App returns 404 in IIS on Windows 10
body: <p>I've just refreshed an app written in .net 2.1 to .net 6.0.  I worked through the errors and the site appears to compile cleanly.  After I published to the server  had many errors.  Working through them, and standing up a full IIS install on my own machine, I now have it down to a 404 error.</p>
  <p>When running the exe straight from the console it runs without errors.</p>
  <pre><code>Z:\ReportGroups&gt;FleetLogix.ReportGroups.exe
  warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
    No XML encryptor configured. Key {snip} may be persisted to storage in unencrypted form.
  
  c:\inetpub\wwwroot\ReportGroups&gt;FleetLogix.ReportGroups.exe
  Hosting environment: Production
  Content root path: c:\inetpub\wwwroot\ReportGroups
  Now listening on: http://localhost:5000
  Now listening on: https://localhost:5001
  Application started. Press Ctrl+C to shut down.
  Application is shutting down...
  </code></pre>
  <p>Web.config is</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;configuration&gt;
    &lt;location path=&quot;.&quot; inheritInChildApplications=&quot;false&quot;&gt;
      &lt;system.webServer&gt;
        &lt;handlers&gt;
          &lt;add name=&quot;aspNetCore&quot; path=&quot;*&quot; verb=&quot;*&quot; modules=&quot;AspNetCoreModuleV2&quot; resourceType=&quot;Unspecified&quot; /&gt;
        &lt;/handlers&gt;
        &lt;aspNetCore processPath=&quot;dotnet&quot; arguments=&quot;.\FleetLogix.ReportGroups.dll&quot; forwardWindowsAuthToken=&quot;false&quot; startupTimeLimit=&quot;3600&quot; requestTimeout=&quot;23:00:00&quot; stdoutLogEnabled=&quot;false&quot; hostingModel=&quot;inprocess&quot; stdoutLogFile=&quot;.\logs\stdout&quot; /&gt;
      &lt;/system.webServer&gt;
    &lt;/location&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p>Looking through Event Viewer, there's nothing of note.  System nothing for IIS, IIS-Configuration and IIS-Admin are empty.</p>
  <p><strong>Edit 2021-11-22</strong></p>
  <p>It took a morning, but I have Request Tracing installed.  For those on windows 10, just go to Add Features &gt; IIS &gt; Health &gt; Tracing.  Don't believe the server 2012 pages. Below is a screenshot:</p>
  <p><a href="https://i.stack.imgur.com/4A9eZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4A9eZ.png" alt="Request Tracing Summary" /></a></p>
  <p>The actual xml and xslt were quite verbose.</p>
  <p>I have reinstalled the Hosting package as administrator, just in case. The version installed was <code>dotnet-hosting-6.0.0-win.exe</code>.  That didn't fix it.  IIS was stopped/started at server level as well.</p>
  <p>At the moment it looks like the handlerv2 is missing?</p>
  <p>If any other logs or config are required please let me know</p>