WCF 服務(wù)是啟動了,包括三種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中把所有的證書都清空了,估計跟這個操作有關(guān),導(dǎo)致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