首页 新闻 搜索 专区 学院

调用webservice的时候报错

0
悬赏园豆:5 [已解决问题] 解决于 2014-07-11 09:17

System.ServiceModel.Dispatcher.NetDispatcherFaultException: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:GetAreaRankingListResponse. The InnerException message was 'There was an error deserializing the object of type Miner.Core.ServiceReference1.GetAreaRankingListResponseBody. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 182851.'.  Please see InnerException for more details. ---> System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type Miner.Core.ServiceReference1.GetAreaRankingListResponseBody. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 182851. ---> System.Xml.XmlException: The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 182851.

拖鞋王子的主页 拖鞋王子 | 初学一级 | 园豆:37
提问于:2014-07-11 09:05
< >
分享
最佳答案
2

 The maximum string content length quota (8192) has been exceeded while reading XML data

看这意思,内容太大了

This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader

可以设置MaxStringContentLength 属性增加最大内容长度

收获园豆:5
scotly | 初学一级 |园豆:4 | 2014-07-11 09:12
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册