首页 > Web开发 > 详细

WebServer参数长度超出解决

时间:2015-07-14 15:25:04      阅读:490      评论:0      收藏:0      [点我收藏+]

当内容超过了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"

WebServer参数长度超出解决

原文:http://www.cnblogs.com/wdw31210/p/4645336.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!