在Web.config中增加下面两个配置后,重启IIS即可。

 

1.修改http请求数据大小限制

<system.web>
  <httpRuntime maxRequestLength="50000000" />
</system.web>

 

2.如果数据序列化格式为Json,请增加:

<system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="500000000"/>
      </webServices>
    </scripting>
 </system.web.extensions>

相关文章:

  • 2022-12-23
  • 2021-09-16
  • 2021-09-28
  • 2021-05-26
  • 2021-10-04
  • 2022-12-23
  • 2021-10-23
  • 2021-06-03
猜你喜欢
  • 2021-07-28
  • 2021-11-30
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2021-09-09
相关资源
相似解决方案