当内容超过了4M会报错

System.Web.Services.Protocols.SoapException: 运行配置文件中指定的扩展时出现异常。 ---> System.Web.HttpException: 超过了最大请求长度。
   在 System.Web.HttpRequest.GetEntireRawContent()
   在 System.Web.HttpRequest.get_InputStream()
   在 System.Web.Services.Protocols.SoapServerProtocol.Initialize()
   --- 内部异常堆栈跟踪的结尾 ---

 可以在WebServer 里的 Web.config修改最大的请求长度,如修改成50M,调用方即可正常传出大数据参数调用

<system.web>
   <httpRuntime   maxRequestLength= "51200"   executionTimeout="3600"   />
 </system.web>

 maxReceivedMessageSize="2147483647"

相关文章:

  • 2022-12-23
  • 2022-01-24
  • 2022-01-21
  • 2021-04-16
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2023-01-30
相关资源
相似解决方案