C# wcf https ssl中的服务端点出错。找不到与具有绑定WebHttpBinding的端点的方案http匹配的基址
我的服务器中有以下代码C# wcf https ssl中的服务端点出错。找不到与具有绑定WebHttpBinding的端点的方案http匹配的基址,c#,wcf,silverlight,ssl,https,C#,Wcf,Silverlight,Ssl,Https,我的服务器中有以下代码 <services> <service name="ME.Streets.WebGateway.DuplexService.DuplexService" behaviorConfiguration="sb"> .... <endpoint address="" binding="webHttpBinding" behaviorConfiguration="webHt
<services>
<service name="ME.Streets.WebGateway.DuplexService.DuplexService"
behaviorConfiguration="sb">
....
<endpoint
address=""
binding="webHttpBinding"
behaviorConfiguration="webHttpEndpointBehavior"
contract="ME.Streets.WebGateway.DuplexService.Interface.IPolicyRetriever"/>
....
<host>
<baseAddresses>
<add baseAddress="https://localhost:10201" />
</baseAddresses>
</host>
</service>
我非常不确定这个错误是从哪里来的。我必须在
节点内安装https
节点吗?已修复
将终结点更改为此(添加了bindingConfiguration=“webHttpsBinding”):
。。。。。
......
新的绑定配置如下:
<bindings>....
<webHttpBinding>
<binding name="webHttpsBinding">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</webHttpBinding>
......
</bindings>
。。。。
......
这为端点提供了一个到http绑定的绑定,该绑定指定了要传输的信息以及连接用户必须拥有的凭据类型您使用的是自签名证书吗?我确实是!它被称为localhost
<services> .....
<endpoint
address=""
binding="webHttpBinding"
behaviorConfiguration="webHttpEndpointBehavior"
bindingConfiguration="webHttpsBinding"
contract="ME.Streets.WebGateway.DuplexService.Interface.IPolicyRetriever">
</endpoint>
......
</services>
<bindings>....
<webHttpBinding>
<binding name="webHttpsBinding">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</webHttpBinding>
......
</bindings>