首页 > 其他 > 详细

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

时间:2014-09-26 12:40:09      阅读:356      评论:0      收藏:0      [点我收藏+]

错误信息如下:

"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://www.cnblogs.com/jxiaox/p/3994534.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!