title: WCF service returning 404 on method requests
body: <p>I have a WCF service page running only WebGets/WebInvokes over SSL - it works fine on my local machine (self signed cert). On production, however, I can reach service.svc (and it gives me the message about how to consume) but service.svc/AnyRequest returns a 404. Both environments are hosted in IIS 7.5.</p>
  
  <p>I've enabled tracing and the service isn't even picking up any of the method requests (e.g. service.svc/SomeRequest), however it is processing <code>service.svc</code> just fine. It's also listening at <code>https://computername.domain.net/path/service.svc</code> - is this normal? Should it normally be pointing to <code>https://publicfacing.com/path/service.svc</code>?</p>
  
  <p>Also note that the production server is hosting multiple sites within IIS.</p>
  
  <p>Below is the system.serviceModel section of my web.config. The SSLBehave was suggested from <a href="https://stackoverflow.com/questions/470111">here</a>.</p>
  
  <pre><code>  &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;webHttpBinding&gt;
          &lt;binding name="TransportSecurity"&gt;
            &lt;security mode="Transport"&gt;
              &lt;transport clientCredentialType="None"&gt;&lt;/transport&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/webHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="SSLBehave"&gt;
            &lt;useRequestHeadersForMetadataAddress&gt;
              &lt;defaultPorts&gt;
                &lt;add scheme="https" port="443"/&gt;
              &lt;/defaultPorts&gt;
            &lt;/useRequestHeadersForMetadataAddress&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
        &lt;endpointBehaviors&gt;
          &lt;behavior name="UserManagement.ajaxAspNetAjaxBehavior"&gt;
            &lt;webHttp defaultOutgoingResponseFormat="Json" defaultBodyStyle="Wrapped" /&gt;
          &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true"
        multipleSiteBindingsEnabled="true" /&gt;
      &lt;services&gt;
        &lt;service name="UserManagement.ajax" behaviorConfiguration="SSLBehave"&gt;
          &lt;endpoint address="" behaviorConfiguration="UserManagement.ajaxAspNetAjaxBehavior"
            binding="webHttpBinding" bindingConfiguration="TransportSecurity" contract="UserManagement.ajax" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>