wcf 由 http 更改为 https 返回404,没有终结点在侦听可以接受消息的

 首先wcf项目在使用http时是没问题的。

WCF有http更改为https之后,返回 没有终结点在侦听可以接受消息

需要修改wcf服务端及客户端

服务端更改代码

<binding maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" >
<security mode="Transport">
<transport clientCredentialType="None"/></security>
</binding>

客户端代码

 <binding name="WSHttpBinding_IQianJinService" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
 <security mode="Transport">
            <transport clientCredentialType="None"/>
          </security>

红色为更改的部分。改了就OK了。

原文地址:https://www.cnblogs.com/mrma/p/5526133.html