首页 > Web开发 > 详细

协定需要双工,但是绑定“WSHttpBinding”不支持它或者因配置不正确而无法支持它

时间:2015-07-13 12:10:42      阅读:694      评论:0      收藏:0      [点我收藏+]
协定需要双工,但是绑定“WSHttpBinding”不支持它或者因配置不正确而无法支持它
以下两种情况,我都遇到过。
一,
 < endpoint address ="" binding="wsHttpBinding" contract="异步.IService1">中的wsHttpBinding改为wsDualHttpBinding,客户端重新更新服务器引用即可

二,app.config
在<system.serviceModel></system.serviceModel>之间加上

<protocolMapping>
<add scheme="http" binding="wsHttpBinding" bindingConfiguration="WsHttpSession"/>
</protocolMapping>

版权声明:本文为博主原创文章,未经博主允许不得转载。

协定需要双工,但是绑定“WSHttpBinding”不支持它或者因配置不正确而无法支持它

原文:http://blog.csdn.net/he_zhidan/article/details/46859925

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!