遇到一個ajax post 提交新聞資訊類的文章,報web
{"Message":"There was an error processing the request.","StackTrace":"","ExceptionType":""}
firebug 調試及測試發現是post的字節過長。找了很久,終於找到調整配置的解決方案
<appSettings> ajax
<add key="aspnet:MaxJsonDeserializerMembers" value="150000" />
</appSettings>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2147483644"/>
</webServices>
</scripting>
</system.web.extensions>json