title: WCF: A registration already exists for URI
body: <p>I have the below in my WCF Web.Config. When I try to access the WCF service I am getting the "A registration already exists for URI" error. The WCF Service is hosted in an SSL enviroment.</p>
  
  <p>Can anyone help please?</p>
  
  <pre><code>  &lt;system.serviceModel&gt;
      &lt;bindings&gt;
          &lt;basicHttpBinding&gt;
            &lt;binding name="WSBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
              receiveTimeout="00:01:00" sendTimeout="00:01:00" allowCookies="false"
              bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
              maxBufferPoolSize="524288" maxReceivedMessageSize="52428800" useDefaultWebProxy="true"&gt;
              &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
               maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
              &lt;security mode="None" /&gt;
            &lt;/binding&gt;
          &lt;/basicHttpBinding&gt;
  
          &lt;webHttpBinding&gt;
            &lt;binding name="SOAPBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
               receiveTimeout="00:01:00" sendTimeout="00:01:00" allowCookies="false"
               bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
               maxBufferPoolSize="524288" maxReceivedMessageSize="52428800" useDefaultWebProxy="true"&gt;
              &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
               maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
              &lt;security mode="None" /&gt;
            &lt;/binding&gt;
          &lt;/webHttpBinding&gt;
        &lt;/bindings&gt;
      &lt;behaviors&gt;
        &lt;endpointBehaviors&gt;
           &lt;behavior name="wsHTTPBehavior"&gt;
              &lt;dataContractSerializer maxItemsInObjectGraph="2147483647"/&gt;
            &lt;/behavior&gt;
  
          &lt;behavior name="jsonBehavior"&gt;
            &lt;webHttp /&gt;
          &lt;/behavior&gt;
  
        &lt;/endpointBehaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="WsBehavior"&gt;
          &lt;serviceMetadata httpsGetEnabled="true" httpsGetUrl="https://*******.com/*****/*****.svc" /&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt;
          &lt;/behavior&gt;
  
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  &lt;services&gt;
    &lt;service name="***.***" behaviorConfiguration="WsBehavior"&gt;
      &lt;endpoint behaviorConfiguration="wsHTTPBehavior" binding="basicHttpBinding" contract="***.***" bindingConfiguration="WSBinding" /&gt;
      &lt;endpoint address="xml" behaviorConfiguration="jsonBehavior" binding="webHttpBinding" contract="***.***" bindingConfiguration="SOAPBinding" name="SOAP" /&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  </code></pre>
  
  <p></p>