2015年6月18日 星期四

WEB METHOD JSON MAX LENGTH

使用JSON.NET來轉換物件為JSON
STRING出來了但是WEBMETHOD丟出去時說太大

在WEB.CONFIG加入此設定值就可以提高上限了


<configuration>
  <system .web.extensions="">
&nbsp; &nbsp; <scripting>
&nbsp; &nbsp; &nbsp; <webservices>
&nbsp; &nbsp; &nbsp; &nbsp; <jsonserialization maxjsonlength="2147483644">
&nbsp; &nbsp; &nbsp; </jsonserialization></webservices>
&nbsp; &nbsp; </scripting>
&nbsp; </system>
</configuration>

沒有留言:

張貼留言