从wcf加载大量数据时出错 [英] Error when heavy data is loading from wcf
本文介绍了从wcf加载大量数据时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
'对象图中可序列化或反序列化的最大项数为65536。更改对象图或增加MaxItemsInObjectGraph配额
解决方案
web.config
< 行为 name = ServiceBehaivor >
< serviceMetadata httpGetEnabled = true / >
< serviceDebug includeExceptionDetailInFaults = true / >
< serviceThrottling maxConcurrentCalls = 2147483647 / >
< dataContractSerializer maxItemsInObjectGraph = 2147483647 / >
< / behavior >
JAFC
'Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the MaxItemsInObjectGraph quota
解决方案
web.config
<behavior name="ServiceBehaivor"> <serviceMetadata httpGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="true"/> <serviceThrottling maxConcurrentCalls="2147483647" /> <dataContractSerializer maxItemsInObjectGraph="2147483647" /> </behavior>
JAFC
这篇关于从wcf加载大量数据时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文