【发布时间】:2012-11-15 17:16:55
【问题描述】:
我的服务器中有以下代码
<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>
我一直在使用 SSL 和 WCF 将 silverlight 应用程序切换到 HTTPS,但是如果我运行我的服务器,我收到以下错误
- System.InvalidOperationException: Could not find a base address that matches
scheme http for the endpoint with binding WebHttpBinding. Registered base address
schemes are [https].
我非常不确定这个错误是从哪里来的。我是否必须在<service> 节点内安装 https <baseaddress> 节点?
【问题讨论】:
-
您使用的是自签名证书吗?
-
我确实是!它被称为本地主机
标签: c# wcf silverlight ssl https