0
我想通過WebHttpBinding和SecurityMode:transport(SSL)公開實施合同。在傳輸中使用WebHttpBinding時,連接中斷安全模式
然而,當我嘗試訪問通過Firefox瀏覽器的網站,我只得到
,而該頁面被加載到本地主機的連接被中斷。
的配置文件如下:
<configuration>
<system.serviceModel>
<services>
<service name="MyService">
<endpoint address="https://localhost"
binding="webHttpBinding"
contract="MyService"
bindingConfiguration="secureWebHttp">
</endpoint>
</service>
</services>
<bindings>
<webHttpBinding>
<binding name="secureWebHttp">
<security mode="Transport"/>
</binding>
</webHttpBinding>
</bindings>
</system.serviceModel>
</configuration>