title: WCF: No protocol binding matches the given address
body: <p>There are several other questions relating to this error (most regarding relative addresses - these are not what I'm looking for as we arent using a relative address)</p>
  
  <p>We have a WCF service which is deployed on several environments without issue - but on the latest installation on a closed network (using https) we are receiving the error:</p>
  
  <blockquote>
    <p>No protocol binding matches the given address '<a href="https://domain.local/programmeservice.svc" rel="nofollow noreferrer">https://domain.local/programmeservice.svc</a>'. Protocol bindings are configured at the Site level in IIS or WAS configuration. </p>
  </blockquote>
  
  <p>We can access to root of the site fine (using https), so we are pretty sure it is a configuration issue with our binding - but we're out of ideas.</p>
  
  <p>The web.config configuration for the service is as follows:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name="Service.BasicHttp.BindingConfig"&gt;
            &lt;security mode="Transport"&gt;
              &lt;transport clientCredentialType="Windows" /&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;services&gt;
        &lt;service name="SomeTestService" behaviorConfiguration="SomeTestService"&gt;
          &lt;endpoint address="https://domain.local:443/testservice.svc" binding="basicHttpBinding" bindingConfiguration="Service.BasicHttp.BindingConfig" contract="ISomeTestService" /&gt;
          &lt;endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
          &lt;behaviors&gt;
              &lt;serviceBehaviors&gt;
                  &lt;behavior name="SomeTestService"&gt;
                      &lt;serviceMetadata httpsGetEnabled="true" /&gt;
                      &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
                      &lt;dataContractSerializer maxItemsInObjectGraph="2147483647" /&gt;
                  &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
          &lt;/behaviors&gt;
          &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" /&gt;
      &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>The full stacktrace of the error is:</p>
  
  <blockquote>
    <p>[InvalidOperationException: No protocol binding matches the given
    address '<a href="https://domain.local/programmeservice.svc" rel="nofollow noreferrer">https://domain.local/programmeservice.svc</a>'. Protocol bindings
    are configured at the Site level in IIS or WAS configuration.]<br>
    System.ServiceModel.Activation.HostedAspNetEnvironment.GetBaseUri(String
    transportScheme, Uri listenUri) +154751<br>
    System.ServiceModel.Channels.TransportChannelListener.OnOpening()
    +16284708    System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
    timeout) +255<br>
    System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan
    timeout) +72</p>
    
    <p>[InvalidOperationException: The ChannelDispatcher at
    '<a href="https://domain.local/programmeservice.svc" rel="nofollow noreferrer">https://domain.local/programmeservice.svc</a>' with contract(s)
    '"ProgrammeService"' is unable to open its IChannelListener.]<br>
    System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan
    timeout) +145<br>
    System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
    timeout) +301    System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan
    timeout) +130<br>
    System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
    timeout) +301<br>
    System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo
    serviceActivationInfo, EventTraceActivity eventTraceActivity) +129<br>
    System.ServiceModel.HostingManager.EnsureServiceAvailable(String
    normalizedVirtualPath, EventTraceActivity eventTraceActivity) +741</p>
    
    <p>[ServiceActivationException: The service '/programmeservice.svc'
    cannot be activated due to an exception during compilation.  The
    exception message is: The ChannelDispatcher at
    '<a href="https://domain.local/programmeservice.svc" rel="nofollow noreferrer">https://domain.local/programmeservice.svc</a>' with contract(s)
    '"ProgrammeService"' is unable to open its IChannelListener..]<br>
    System.Runtime.AsyncResult.End(IAsyncResult result) +607194<br>
    System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult
    result) +231<br>
    System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult
    ar) +177</p>
  </blockquote>