问题:
使用 JSON JavaScriptSerializer 进行序列化或反序列化时出错。字符串的长度超过了为 maxJsonLength 属性设置的值。
这个要怎么处理?
解决方法:
1. <system.web.extensions>
2. <scripting>
3. <webServices>
4. <jsonSerializationmaxJsonLength="20971520"/>
5. </webServices>
6. </scripting>
7. </system.web.extensions>
int
base {System.ValueType}: System.ValueType
MaxValue: 2147483647
MinValue: -2147483648
Int32int
base {System.ValueType}: System.ValueType MaxValue: 2147483647
MinValue: -2147483648配置成最大值也不行,感觉是个BUG,配置解决不了问题,只能动代码了。
这样就解决了。