title: Get 500 error when deploy a .NET Core Web App to IIS server by Azure Pipelines
body: <p>I'm using <code>AzureDevOps</code> as the <code>CI&amp;CD</code> tool os my project. And I used the template called <code>IIS website deployment</code>. I've done the configuration and it runs well. It can deploy successfully. But I can just get a 500 error when I view it.</p>
  
  <p>Port 80 (There's no site on it):</p>
  
  <pre><code>HTTP Error 500.19 - Internal Server Error
  
  The requested page cannot be accessed because the related configuration data for the page is invalid.
  </code></pre>
  
  <p>Port 8000 (I deployed my site and opened the firewall access):
  I can't get any page like 500 or so, there's only an <code>ERR_EMPTY_RESPONSE</code> on the browser.</p>
  
  <p>Here is the screenshot from the destination folder where the code been build
  <a href="https://i.stack.imgur.com/1RsEv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1RsEv.png" alt="Screenshot"></a></p>
  
  <p>web.config.xml
  <a href="https://i.stack.imgur.com/sNuc8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sNuc8.png" alt="web.config.xml"></a></p>
  
  <p>Is there any code I missed in Startup.cs or Program.cs? I leave them as default.</p>