title: .net Core API not working on IIS
body: <p>I'm new to this .NET Core stuff and this is the first time I've tried to deploy one of these.</p>
  
  <p>The project is an API for an Angular front end I'm building and takes HTTP requests and returns JSON.  When I run it in Visual Studio on my box it is all fine.  I'm running VS2017 and have .NET Core 2.0.0 installed.</p>
  
  <p>I publish to a folder on the web server and it all seems to work fine, but when I try to access the API I get a 404 not found error.  The server is running .NET 2.0.6 (I tried to get 2.0.0 but couldn't find it in the Hosting Bundle Installer.</p>
  
  <p>If I delete the web.config the HTML file will then show up, but obviously the API doesn't work.  But as the HTML file shows up there is no issue with permissions and access.  There's nothing in the Event Viewer.  I've also tried turning on the logging in the web.config, but it doesn't log... probably not getting far enough to.</p>
  
  <p>Web config looks like this.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;system.webServer&gt;
      &lt;handlers&gt;
        &lt;add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /&gt;
      &lt;/handlers&gt;
      &lt;aspNetCore processPath="dotnet" arguments=".\RawMaterialsSystem.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" /&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  &lt;!--ProjectGuid: f01b1621-2ced-4ad2-9ae6-004e03b0e043--&gt;`
  </code></pre>