title: Restful WCF (webhttpbinding) in IIS breaks after adding https binding
body: <p>I have a WCF service hosted in IIS (7.0) which implements multiple service contracts and therefore defines multiple endpoints (one for each contract). It has been working fine but I have just added an https binding to the IIS web application and I am now getting an activation exception specifying that the service implements multiple contracts but no endpoints are defined in configuration when they actually are. I found <a href="http://www.keithelder.net/blog/archive/2008/04/28/Configuring-WCF-and-IIS-7-With-HTTP-Bindings-and-Multiple.aspx" rel="nofollow noreferrer">this</a> article which solves a similar problem caused by adding host names to IIS, but it doesn't seem to help my situation.</p>
  
  <p>Here is a snippet of my configuration which is relevant:</p>
  
  <pre><code>&lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true"&gt;
    &lt;baseAddressPrefixFilters&gt;
      &lt;add prefix="http://localhost/CDC.WebPortal.MidTierAccessService/"/&gt;
    &lt;/baseAddressPrefixFilters&gt;
  &lt;/serviceHostingEnvironment&gt;
  
  
  &lt;services&gt;
    &lt;service name="CDC.WebPortal.MidTier.MidTierAccessService"
             behaviorConfiguration="MidTierServiceBehaviour" &gt;
  
      &lt;endpoint address="http://localhost/CDC.WebPortal.MidTierAccessService/MidTierAccessService.svc"
                binding="webHttpBinding" bindingName="RestBindingConfiguration"
                contract="CDC.WebPortal.ServiceContract.IProductService"/&gt;
  
      &lt;endpoint address="http://localhost/CDC.WebPortal.MidTierAccessService/MidTierAccessService.svc/Category" binding="webHttpBinding" 
                bindingName="RestBindingConfiguration"
                contract="CDC.WebPortal.ServiceContract.ICategoryService"/&gt;
  
      &lt;endpoint address="http://localhost/CDC.WebPortal.MidTierAccessService/MidTierAccessService.svc/Account" binding="webHttpBinding" 
                bindingName="RestBindingConfiguration"
                contract="CDC.WebPortal.ServiceContract.IAccountService"/&gt;
  
      &lt;endpoint address="http://localhost/CDC.WebPortal.MidTierAccessService/MidTierAccessService.svc/Order"
                binding="webHttpBinding" bindingName="RestBindingConfiguration"
                contract="CDC.WebPortal.ServiceContract.IOrderService"/&gt;
  
      &lt;endpoint address="http://localhost/CDC.WebPortal.MidTierAccessService/MidTierAccessService.svc/mex"
                binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
  
    &lt;/service&gt;
  &lt;/services&gt;
  </code></pre>
  
  <p>Any suggestions are appreciated.</p>