【发布时间】:2016-02-23 19:37:53
【问题描述】:
我知道有关于此的线索,但我只是没有看到我在这里做错了什么。使用以下配置,当我尝试通过 https 访问服务时,出现以下错误: 找不到与具有绑定 WSHttpBinding 的端点的方案 https 匹配的基地址。注册的基地址方案是 [http]。` 这是我的 web.config 的相关部分。谢谢。
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="sslBindingConfig">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name="MEA.SAWS.Service.SARuleService" behaviorConfiguration="ServiceBehavior">
<!-- Service Endpoints -->
<endpoint address=""
binding="wsHttpBinding"
bindingConfiguration="sslBindingConfig"
contract="MEA.SAWS.ServiceContract.ISARuleService">
</endpoint>
<endpoint address="mex"
binding="mexHttpsBinding"
bindingConfiguration=""
contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpsGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
【问题讨论】: