title: Blazor Hosted (ASP.NET) HTTP Error 500.19 - Internal Server Error
body: <p>From what I understand this error occurs when the web.config is not configured properly. However when I publish the app the following web.config gets generated </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;location path="." inheritInChildApplications="false"&gt;
      &lt;system.webServer&gt;
        &lt;handlers&gt;
          &lt;add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /&gt;
        &lt;/handlers&gt;
        &lt;aspNetCore processPath=".\Lotus.Server.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" /&gt;
      &lt;/system.webServer&gt;
    &lt;/location&gt;
  &lt;/configuration&gt;
  &lt;!--ProjectGuid: 85a43eb6-3576-401d-b025-a15a2cc377b6--&gt;
  </code></pre>
  
  <p>I first thought of installing URL Rewrite, this did not solve the problem. I am stressing out have tried almost everything any ideas on how to resolve it?</p>
  
  <p>The error page looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/I36x5.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/I36x5.jpg" alt="enter image description here"></a></p>