title: Blazor webassembly (net5.0) publish not worked in IIS
body: <p>I have created a Blazor webassambly net5 project with Identity Server (asp.net core hosted, PWA checked). Project run fine development in Visual Studio and done publish with it. Publish file is in ProjectName/Server/bin/release/net5.0/publish.</p>
  <p>I followed the steps to host on IIS as,</p>
  <ul>
  <li>From windows features, enabled IIS features (show in image)</li>
  <li>Restarted the windows</li>
  <li>Asp net <strong>core hosting bundle 5.0.7</strong> downloaded and installed</li>
  <li>Restarted the windows</li>
  <li>added site on IIS, pointing to the publish folder , <strong>&quot;ProjectName/Server/bin/release/net5.0/publish&quot;</strong>, and <strong>Port 801</strong></li>
  <li>In application pool, .NET CLR Version is set to <strong>'No Managed Code'</strong></li>
  <li>But the site is not working, and the message is
  <code>This page isn’t working right now localhost can't currently handle this request. HTTP ERROR 500</code>.</li>
  </ul>
  <p>Here I have attached some images I have done,
  <a href="https://i.stack.imgur.com/SzkUU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SzkUU.png" alt="enter image description here" /></a></p>
  <p>Server .csproj file.
  <a href="https://i.stack.imgur.com/9hfyG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9hfyG.png" alt="enter image description here" /></a></p>
  <p>IIS setup and Program Features
  <a href="https://i.stack.imgur.com/vkfrw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vkfrw.png" alt="enter image description here" /></a></p>
  <p>used application pool
  <a href="https://i.stack.imgur.com/lwt3Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lwt3Y.png" alt="enter image description here" /></a></p>
  <p>and the result, while browse the site
  <a href="https://i.stack.imgur.com/vX7cJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vX7cJ.png" alt="enter image description here" /></a></p>
  <p>I have tried some other answers/result from search but not success.
  Please help.</p>