协定须要双工,可是绑定“WSHttpBinding”不支持它或者因配置不对而无法支持它
下面两种情况,我都遇到过。


一,
 < endpoint address ="" binding="wsHttpBinding" contract="异步.IService1">中的wsHttpBinding改为wsDualHttpBinding,client又一次更新server引用就可以

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

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

相关文章:

  • 2021-09-06
  • 2022-01-24
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-12-20
猜你喜欢
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-09-10
  • 2022-12-23
相关资源
相似解决方案