title: WCF HttpsGetUrl A registration already exists for URI
body: <p>This is similar to other Stack postings, but slightly different in that I am only hosting a single wsHttp endpoint (and the mex).  When I leave the httpsGetUrl empty, it shows the server name instead of the public uri that I need (for the wsdl)</p>
  
  <p>Here is the important part of the config.
      </p>
  
  <pre><code>  &lt;service behaviorConfiguration="myServiceBehaviors" name="WebApplication1.Service1"&gt;
      &lt;clear/&gt;
  
      &lt;endpoint behaviorConfiguration="flatwsdl" address="mex" binding="mexHttpsBinding" bindingConfiguration="mexHttpsBinding"
        contract="IMetadataExchange" listenUriMode="Explicit"&gt;         
      &lt;/endpoint&gt;
  
      &lt;endpoint  behaviorConfiguration="flatwsdl" address="wsHttp" binding="wsHttpBinding" bindingConfiguration="wsHttpBindingConfig"
        contract="WebApplication1.IService1" /&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name="myServiceBehaviors"&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
        &lt;serviceMetadata httpsGetEnabled="true" httpsGetUrl="https://mydomain.com/integration/Service1.svc" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
          &lt;endpointBehaviors&gt;
      &lt;behavior name="flatwsdl"&gt;
        &lt;wsdlExtensions /&gt;
      &lt;/behavior&gt;
    &lt;/endpointBehaviors&gt;
  &lt;/behaviors&gt;
  </code></pre>
  
  <p>any suggestions?</p>