title: .NET core 3.1 app shows "Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list"
body: <p>I just deployed a my converted (2.2 -> 3.1) .NET core ASP.NET MVC app to my shared hosting provider.</p>
  
  <p>I published it from VS2019 to my file system to a private folder and then FTP'd it to the server.</p>
  
  <p>But when I run it, it says:</p>
  
  <pre><code>HTTP Error 500.21 - Internal Server Error Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list
  </code></pre>
  
  <p>I can see that the publishing wizard add's a web.config (tried removing that, but that didn't work) with this line:</p>
  
  <pre><code>&lt;add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /&gt;
  </code></pre>
  
  <p>So I guess that's where the <code>AspNetCoreModuleV2</code> comes from.</p>
  
  <p>Tried to remove the '2', tried with 'self-contained' and 'framework-dependant' deployment mode, and tried with x64 and x86, nothing worked.</p>
  
  <p>Previous version was NET CORE 2.2, which worked.</p>
  
  <p>I can't figure out whether the <code>V2</code> has something to do with .NET CORE V2.x, or not. </p>