WCF 服务是启动了,包括三种binding: wsHttpBinding, basicHttpBinding, netTcpBinding.
但当使用wcftestclient进行测试的时候,唯有basicHttpBinding 工作正常,其它两种报错误。错误与
wsHttpBinding:
SOAP security negotiation with 'http://localhost:8001/WCFService' for target 'http://localhost:8001/WCFService' failed. See inner exception for more details.
netTcpBinding:
A call to SSPI failed, see inner exception.
解决方案:
http://social.msdn.microsoft.com/Forums/zh-CN/wcfzhchs/thread/2b6670c6-99de-41ae-befa-f0afed49114d/
http://msdn.microsoft.com/zh-cn/library/ms733813
原因:印象中我前不久在IE中把所有的证书都清空了,估计跟这个操作有关,导致Certificate Chain有问题。
------
Serialize 返回类型为 object
做法:
Error 1:
An error occurred while receiving the HTTP response to http://localhost:5000/CacheService.
This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted
-----
Exception:
The maximum message size quota for incoming messages (65536) has been exceeded