[英]Can I set an unlimited length for maxJsonLength in App.config?
I am using the WPF application, Can I set an unlimited length for maxJsonLength in app.config? 我正在使用WPF应用程序,可以在app.config中为maxJsonLength设置无限长度吗? If not, what is the maximum length I can set?
如果没有,我可以设置的最大长度是多少?
The MaxJsonLength cannot be unlimited, is an integer property that defaults to 102400. Set property on your web.config: MaxJsonLength不能为无限,它是一个整数属性,默认为102400。在web.config上设置属性:
<configuration>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="50000000"/>
</webServices>
</scripting>
</system.web.extensions>
</configuration>
It is an integer so the max value you can set is: 2147483644 它是一个整数,因此您可以设置的最大值是: 2147483644
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.