2012-10-23 198 views
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元素(只留下一个活动端点),那么剩余的端点将正常工作?

回答

0

我在IIS中错误地设置了网站 - 我为HTTP版本和HTTPS版本创建了单独的网站,但实际上它们应该是相同的网站,但使用HTTPS和HTTP绑定