title: A binding instance has already been associated to listen ''
body: <p>have WCF REST service that I’m trying to host in IIS 7 with SSL. Everything works fine as long as we DO NOT enable SSL in IIS.</p>
  
  <p>As soon as I enable SSL in IIS and update configuration file  as . And then I browse service in IE. I get the error blow.</p>
  
  <p>A binding instance has already been associated to listen URI '<a href="https://machinename.mydomain.com/Service1/" rel="nofollow">https://machinename.mydomain.com/Service1/</a>'. If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in AddServiceEndpoint() calls, in a config file, or a combination of AddServiceEndpoint() and config.</p>
  
  <p>Here is the service settings in configuration file.</p>
  
  <pre><code>&lt;system.serviceModel&gt;
    &lt;services&gt;
    &lt;service name="ServiceGateway.Service1"&gt;
      &lt;endpoint address=""
                contract="MyDomain.Services.ServiceGateway.Servie1"
                binding="webHttpBinding" /&gt;
    &lt;/service&gt;
   &lt;/services&gt;
   &lt;bindings&gt;
    &lt;webHttpBinding&gt;
      &lt;binding&gt;
        &lt;security mode="Transport"/&gt;
      &lt;/binding&gt;
    &lt;/webHttpBinding&gt;      
   &lt;/bindings&gt;    
   &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true"/&gt;
   &lt;standardEndpoints&gt;
     &lt;webHttpEndpoint&gt;        
       &lt;standardEndpoint name="" helpEnabled="true"   automaticFormatSelectionEnabled="true"/&gt;
     &lt;/webHttpEndpoint&gt;
   &lt;/standardEndpoints&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>Here is the code that executes at startup in Global.asax file</p>
  
  <pre><code>   public class Global : HttpApplication
     {
       public void Application_Start(object sender, EventArgs e)
      {
          RouteTable.Routes.Add(new ServiceRoute(string.Empty, 
                        new WebServiceHostFactory(), 
                        typeof(Service1)));
      }
    }
  </code></pre>