0
<system.serviceModel>
<services>
<service name="foo">
<endpoint address="" behaviorConfiguration="testbehaviour" binding="webHttpBinding" contract="testcontact" bindingConfiguration="webBinding" />
<endpoint address="" behaviorConfiguration="testbehaviour" binding="webHttpBinding" contract="testcontact" bindingConfiguration="webBindingHttps" />
</service>
</services>
<system.serviceModel>
正如在web.config中提取出上面,我们在Windows Server 2008台机器出现故障,我们有一个端点,可以达到通过HTTP和HTTPS。WCF服务后impleneted通过HTTP和HTTPS
我刚刚完成了服务器2012(使用iis8)的安装,现在我收到消息 “无法找到与绑定WebHttpBinding的端点匹配的scheme https的基址,注册的基址地址方案是[http ]“。
非常奇怪的是 - 如果我注释一个endpoint
元素(只留下一个活动端点),那么剩余的端点将正常工作?