WCF使用https后报错的问题

报错:

找不到具有绑定 webHttpEndpoint 的终结点的与方案 http 匹配的基址。注册的基址方案是 [https]

 

<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<standardEndpoints>
<webHttpEndpoint>
<!--
Configure the WCF REST service base address via the global.asax.cs file and the default endpoint
via the attributes on the <standardEndpoint> element below
-->
<standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" />
</webHttpEndpoint>
</standardEndpoints>

<bindings>
<webHttpBinding>
<binding>
<security mode="Transport">
</security>
</binding>
</webHttpBinding>
</bindings>


</system.serviceModel>

 

 

加上红色字体那段就ok了

posted @ 2013-08-21 11:24  hinsxun  阅读(654)  评论(0编辑  收藏  举报