码迷,mamicode.com
首页 > 其他好文 > 详细

WCF中DataContract用IEnumerable 类型导致传输错误

时间:2014-09-26 13:48:58      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:http   os   for   数据   sp   on   c   log   r   

错误信息如下:

"An error occurred while receiving the HTTP response to http://127.0.0.1/PlugInService_PMFDataService/PMFDataService. 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 by the server (possibly due to the service shutting down). See server logs for more details."

 

本以为是传输大小超过限制 ,修改其maxReceivedMessageSize后,未果。

 

经google发现原来不能用IEnumerable 返回数据,应该采用List<>返回

WCF中DataContract用IEnumerable 类型导致传输错误

标签:http   os   for   数据   sp   on   c   log   r   

原文地址:http://www.cnblogs.com/jxiaox/p/3994534.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!