读取XML数据时,已超出最大字符串内容长度配额(8192). [英] The maximum string content length quota (8192) has been exceeded while reading XML data.

查看:539
本文介绍了读取XML数据时,已超出最大字符串内容长度配额(8192).的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


格式化程序尝试反序列化消息时引发异常:尝试反序列化参数http://tempuri.org/:ObjMsg时出错. InnerException消息是反序列化Entities.Message类型的对象时发生错误.读取XML数据时,已超出最大字符串内容长度配额(8192).通过更改在创建XML阅读器时使用的XmlDictionaryReaderQuotas对象上的MaxStringContentLength属性,可以增加此配额.第1行,位置9004.''.有关更多详细信息,请参见InnerException.


The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:ObjMsg. The InnerException message was ''There was an error deserializing the object of type Entities.Message. 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 9004.''. Please see InnerException for more details.

推荐答案

请尝试使用 POST 而不是 GET 来解决此问题. .

问候
塞巴斯蒂安
Please try POST instead of GET, that may solve this issue.

Regards
Sebastian


这篇关于读取XML数据时,已超出最大字符串内容长度配额(8192).的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆