WCF中The socket connection was aborted可能導致該異常的原因

The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host.

可能是WCF的數據傳輸中含有一個DataTable. 如果是沒有名字的DataTable,就會拋出上邊這個異常。

另外的一個異常是There was an error while trying to deserialize parameter.

這個原因是空的table沒有辦法序列化。可能原因是table爲null,而無法序列化一個null.

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章