我们手动编码使用客户端调用WCF服务的时候会出现服务不支持 .Net Framing的错误,
具体信息如下:
You have tried to create a channel to a service that does not support .Net Framing. It is possible that you are encountering an HTTP endpoint.
WCF分布式开发常见错误(3):客户端调用服务出错
解决办法:
检查宿主进程里,WCF服务的终结点地址例如:Uri httpAddress = new Uri(http://localhost:8002/WCFService);
使用的绑定协议为HTTP,客户端在调用WCF服务的时候必须使用相应的HTTP协议。修改后就可以正确调用服务。

转载于:https://blog.51cto.com/frankxulei/320940

相关文章:

  • 2021-08-31
  • 2021-11-27
  • 2022-01-19
  • 2021-04-26
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-23
  • 2021-10-20
  • 2021-07-08
  • 2022-02-10
相关资源
相似解决方案