Wcf 绑定实例已关联到侦听'';

Wcf 绑定实例已关联到侦听'';,wcf,rest,Wcf,Rest,使用SSL在IIS 7中托管WCF REST服务。只要我们不在IIS中启用SSL,一切正常 只要我在IIS中启用SSL并将配置文件更新为。然后我在IE中浏览服务。我得到了错误的打击 绑定实例已与侦听URI“”关联。如果两个端点想要共享同一个ListenUri,它们还必须共享同一个绑定对象实例。在AddServiceEndpoint()调用、配置文件或AddServiceEndpoint()和config的组合中指定了两个冲突的端点 以下是配置文件中的服务设置 <system.service

使用SSL在IIS 7中托管WCF REST服务。只要我们不在IIS中启用SSL,一切正常

只要我在IIS中启用SSL并将配置文件更新为。然后我在IE中浏览服务。我得到了错误的打击

绑定实例已与侦听URI“”关联。如果两个端点想要共享同一个ListenUri,它们还必须共享同一个绑定对象实例。在AddServiceEndpoint()调用、配置文件或AddServiceEndpoint()和config的组合中指定了两个冲突的端点

以下是配置文件中的服务设置

<system.serviceModel>
  <services>
  <service name="ServiceGateway.Service1">
    <endpoint address=""
              contract="MyDomain.Services.ServiceGateway.Servie1"
              binding="webHttpBinding" />
  </service>
 </services>
 <bindings>
  <webHttpBinding>
    <binding>
      <security mode="Transport"/>
    </binding>
  </webHttpBinding>      
 </bindings>    
 <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
 <standardEndpoints>
   <webHttpEndpoint>        
     <standardEndpoint name="" helpEnabled="true"   automaticFormatSelectionEnabled="true"/>
   </webHttpEndpoint>
 </standardEndpoints>
</system.serviceModel>

Framework 4.5安装可能会出现:的重复问题请参阅:和
   public class Global : HttpApplication
   {
     public void Application_Start(object sender, EventArgs e)
    {
        RouteTable.Routes.Add(new ServiceRoute(string.Empty, 
                      new WebServiceHostFactory(), 
                      typeof(Service1)));
    }
  }