WCF分布式开发常见错误(3):客户端调用服务出错
2009-03-15 23:40
639 查看
我们手动编码使用客户端调用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服务的终结点地址例如:Uri httpAddress = new Uri(http://localhost:8002/WCFService);
使用的绑定协议为HTTP,客户端在调用WCF服务的时候必须使用相应的HTTP协议。修改后就可以正确调用服务。
具体信息如下:
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服务的终结点地址例如:Uri httpAddress = new Uri(http://localhost:8002/WCFService);
使用的绑定协议为HTTP,客户端在调用WCF服务的时候必须使用相应的HTTP协议。修改后就可以正确调用服务。
相关文章推荐
- WCF分布式开发常见错误(3):客户端调用服务出错:You have tried to create a channel to a service that does not support .Net Framing
- WCF分布式开发常见错误解决(1):添加服务引用出错
- WCF分布式开发常见错误解决(1):An error occurred while attempting to find services at...添加服务引用出错
- WCF分布式开发常见错误解决(1):An error occurred while attempting to find services at...添加服务引用出错
- WCF分布式开发常见错误(17):无法启动MSMQ服务
- WCF分布式开发常见错误(12):The server was unable to process the request,服务无法处理请求
- WCF分布式开发常见错误(13):The transaction under which this method call was executing ,此方法调用的事务被异步中断
- WCF分布式开发常见错误(12):The server was unable to process the request,服务无法处理请求
- WCF分布式开发常见错误(17):无法启动MSMQ服务
- WCF分布式开发常见错误(13):此方法调用的事务被异步中断
- WCF分布式开发常见错误解决(12):The server was unable to process the request,服务无法处理请求
- WCF分布式开发常见错误解决(7):Cannot have two operations in the same contract
- WCF分布式开发常见错误(29):Unrecognized attribute 'targetFramework' (未识别的属性'targetFramework' )
- WCF分布式开发常见错误
- WCF分布式开发常见错误(8):不一致的访问性Inconsistent accessibility
- WCF分布式开发常见错误(21):unable to open its IChannelListener.分发器未能打开侦听器
- WCF分布式开发常见错误(14):无效的操作异常,At least one operation on the ...
- 2.WSDL、服务端已经开发好,客户端静态调用服务端开放的服务:执行批处理WSDL-SQUARED.CMD,报如下错误
- WCF分布式开发常见错误(27):Secure channel cannot be opened because security negotiation with the remote endpoint has failed
- WCF分布式开发常见错误解决(9):无终结点监听,There was no endpoint listening at