Cannot run ASP.net service on IIS (Windows 10) - error 404 (not found)
<p>Here's the scenario: Windows 10, VS2015 update 3.</p>

<p>Create new blank 'empty' asp.net project, .NET 4.5.2, and add a dummy 'index.html'.
Run project with IIS express (the default): runs fine.</p>

<p>Change server to IIS: get HTTP Error 500.19 - Internal Server Error, Error Code
   0x80070021. This suggests an invalid section 'modules' in web.config. So I comment out that section and run again. That gives the 404 error.</p>

<p>My JavaScript is working fine on IIS, but it appears that IIS is not starting the ASP.NET service - every ajax call to the service results in error 404. So I guess there's something missing from web.config. I have this in system.servicemodel</p>

<pre><code>&lt;services&gt;
  &lt;service behaviorConfiguration="ServiceBehavior" name="WebMap.WebMap"&gt;
    &lt;endpoint address="" behaviorConfiguration="EndpBehavior" binding="webHttpBinding"
      contract="WebMap.IWebMap" /&gt;
    &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
  &lt;/service&gt;
&lt;/services&gt;
</code></pre>

<p>and the file service1.svc consists of</p>

<pre><code>&lt;%@ ServiceHost Language="C#" Debug="true" Service="WebMap.WebMap" CodeBehind="Service1.svc.cs" %&gt;
</code></pre>

<p>Notes: (1) two different PC's are doing the same thing. (2) if I create a new 'WebAPI' project, rather than an 'empty' one, I get exactly the same results, except that more sections need commenting out of 'web.config'</p>