title: IIS won't activate WCF Service, 404 error
body: <p>I have a WCF Service that will only expose HTTP Endpoints, my App.config is this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;  
    &lt;system.diagnostics&gt;
        &lt;sources&gt;
              &lt;source name="System.ServiceModel" 
                      switchValue="Information, ActivityTracing"
                      propagateActivity="true"&gt;
              &lt;listeners&gt;
                 &lt;add name="traceListener" 
                     type="System.Diagnostics.XmlWriterTraceListener" 
                     initializeData= "C:\Users\Developer\Documents\ProjectName\Servicelog.svclog" /&gt;
              &lt;/listeners&gt;
           &lt;/source&gt;
        &lt;/sources&gt;
     &lt;/system.diagnostics&gt;
    &lt;appSettings&gt;
      &lt;add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /&gt;
      &lt;add key="ClientSettingsProvider.ServiceUri" value="" /&gt;
    &lt;/appSettings&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" /&gt;
    &lt;/system.web&gt;
    &lt;system.serviceModel&gt;
      &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="false" /&gt;
      &lt;services&gt;
        &lt;service name="Project.ServiceOne"&gt;
          &lt;endpoint address="http://localhost/Project/ServiceOne" binding="webHttpBinding" contract="Project.IServiceOne"/&gt;
        &lt;/service&gt;
        &lt;service name="Project.ServiceTwo"&gt;
          &lt;endpoint address="http://localhost/Project/ServiceTwo" binding="webHttpBinding" contract="Project.IServiceTwo"/&gt;
        &lt;/service&gt;
      &lt;/services&gt;
    &lt;/system.serviceModel&gt;
    &lt;system.webServer&gt;
     &lt;httpProtocol&gt;
       &lt;customHeaders&gt;
          &lt;add name="Access-Control-Allow-Origin" value="*" /&gt;
          &lt;add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept"/&gt;
       &lt;/customHeaders&gt;
     &lt;/httpProtocol&gt;
    &lt;/system.webServer&gt;
    &lt;startup&gt;
      &lt;supportedRuntime version="v2.0.50727" /&gt;
    &lt;/startup&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I'm running IIS 7.5 (Windows 7 x64 - The full blown Programs and Features one, not Express) to the Default Web Site, the Project application. </p>
  
  <p>I can browse to the .svc file and it will tell me the MEX endpoint is not enabled which is fine: It's the behavior i want over that aspect; The problem comes when i try to POST to <code>http://localhost/Project/ServiceOne/ServiceMethod</code>. The method exists in the Service contract and implementation and is also decorated in the interface as a WebInvoke but POST'ing to it will only return HTTP 404's. Decorating a test method with GET and browsing to it results in a 404 served by MapRequestHandler.</p>
  
  <p>What is wrong with my App.config file?
  How can i make those endpoints work?</p>
  
  <p>As requested, the Interface:</p>
  
  <pre><code>[ServiceContract]
  public interface IServiceOne
  {
      [OperationContract]
      [WebInvoke(Method = "GET",
         RequestFormat = WebMessageFormat.Json,
         ResponseFormat = WebMessageFormat.Json,
         UriTemplate = "MyMethod")]
      List&lt;String&gt; MyMethod();
  }
  </code></pre>