title: Docker for windows - Internal server error
body: <p>I am having a problem when running one of my solutions in <strong>Docker Desktop for Windows</strong>.
  I use the following dockerfile:</p>
  
  <pre><code># escape=`
  FROM microsoft/iis
  SHELL ["powershell", "-command"]
  # Install ASP.NET
  RUN Install-WindowsFeature NET-Framework-45-ASPNET; `  
      Install-WindowsFeature Web-Asp-Net45
  # Configure website
  EXPOSE 8000  
  RUN Remove-Website -Name 'Default Web Site'; `  
  md c:\barometer; `
  New-Website -Name 'barometer' `
              -Port 8000 -PhysicalPath 'c:\barometer' `
              -ApplicationPool '.NET v4.5'
  COPY PublishOutput c:\barometer
  </code></pre>
  
  <p>My build steps are as follows:</p>
  
  <pre><code>docker build -t mvcbarometer .
  docker run -d --name barometer mvcbarometer
  docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" barometer
  </code></pre>
  
  <p>Everything builds fine, but i get the following error when visiting the site: "There is a problem with the resource you are looking for, and it cannot be displayed."</p>
  
  <p><a href="https://i.stack.imgur.com/FZaCE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FZaCE.png" alt="- http://imgur.com/a/areF8"></a></p>
  
  <p>For some reason i cannot get the classic yellow error page that is shown when debugging through visual studio, even though i am using the same configuration.</p>
  
  <p>It does not seem like docker logs any errors anywhere, so i am kinda stuck at debugging the problem.
  My other (more basic) projects works fine with a similar docker build setup.</p>
  
  <p>I read somewhere that docker has problems with certain web.config elements, but i cannot find any real documentation on the subject.</p>
  
  <p>Could anyone help me with debugging the problem?</p>