title: Why does upgrading to .Net 6 causes HTTP Error 500.31 - Failed to load ASP.NET Core runtime
body: <p>I created a .net core 3.1 application. Then migrated to .Net 5 and wasm.
  I can deploy it to a server running .net core 3.1 and 5.0 hosting bundles.</p>
  <p>Now I upgraded my .net 5 wasm to .net 6. It runs fine locally.
  When I deploy to a web server running .net 6 hosting bundle only, the application returns the error : HTTP Error 500.31 - Failed to load ASP.NET Core runtime</p>
  <p>Seems like i would need to install .net 3.1.</p>
  <p>I can't find any reference to .net 3.1 in my code.</p>
  <p>Did I miss something in my upgrade?
  I 'upgraded' by opening my solution in VS2022, changing the target framework to 6.0 updating all my Nuget packages to the latest.</p>
  <p>Build, run.</p>