Wcf 一个服务的http和https
我正在处理一个问题,但无法解决它 我有一个在asp.net 4.0应用程序中工作的服务。 该站点可通过http和https访问。 问题是,使用下面提供的配置截取的服务可以通过http或https工作 我的配置有什么问题Wcf 一个服务的http和https,wcf,Wcf,我正在处理一个问题,但无法解决它 我有一个在asp.net 4.0应用程序中工作的服务。 该站点可通过http和https访问。 问题是,使用下面提供的配置截取的服务可以通过http或https工作 我的配置有什么问题 <system.serviceModel> <bindings> <webHttpBinding> <binding name="webHttpsBinding"&g
<system.serviceModel>
<bindings>
<webHttpBinding>
<binding name="webHttpsBinding">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</webHttpBinding>
</bindings>
<behaviors>
<endpointBehaviors>
<behavior name="HMS.DataServices.PaymentsServiceBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="HMS.DataServices.PaymentsServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service name="HMS.DataServices.PaymentsService">
<!--HTTP-->
<endpoint address="" binding="webHttpBinding" contract="HMS.DataServices.IPaymentsService"
behaviorConfiguration="HMS.DataServices.PaymentsServiceBehavior" />
<!--HTTPS-->
<endpoint address="" binding="webHttpBinding" bindingConfiguration="webHttpsBinding"
contract="HMS.DataServices.IPaymentsService" behaviorConfiguration="HMS.DataServices.PaymentsServiceBehavior" />
</service>
</services>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
提前谢谢 您确定在IIS中配置了HTTPS,并且宿主站点允许HTTPS绑定吗?
The exception message is: Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]..