wcf web service返回错误最大字符串内容长度配额 [英] wcf web service Return Error The maximum string content length quota

查看:83
本文介绍了wcf web service返回错误最大字符串内容长度配额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

反序列化操作'GetData'的回复消息正文时出错。读取XML数据时已超出最大字符串内容长度配额(8192)。通过更改创建XML阅读器时使用的XmlDictionaryReaderQuotas对象的MaxStringContentLength属性,可以增加此配额。第195行,第93位。



配置中的位置和更改。

告诉我

Error in deserializing body of reply message for operation 'GetData'. 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 195, position 93.

where and what change in config.
tell me

推荐答案

Hi Chetan,



我也遇到过这个问题,是的,你是对的,你需要添加 maxBufferPoolSize在配置文件中=524288

例如这是我的装订服务



Hi Chetan,

I too experience this issue, yes you are right you need to add maxBufferPoolSize="524288" in config file.
For example this is my binding service

<binding name="XXXXXXXXX" closetimeout="00:01:00"

            openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"

            bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"

            maxBufferPoolSize="524288" maxReceivedMessageSize="65536"

            messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"

            allowCookies="false"></binding>



这里我增加了大小。

我希望这对你有所帮助。



谢谢,

RK


Here I have increased the size.
I hope this might help you a bit.

Thanks,
RK


这篇关于wcf web service返回错误最大字符串内容长度配额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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