asp.net默认最大上传文件大小为4096
如果是单个项目
修改web.config文件可以改变这个默认值
<configuration>
<system.web>
<httpRuntime maxRequestLength="10000" />
</system.web>
<configuration>
多个项目通常修改 c:\winnt\microsoft.net\dotnetframework\1.xxx.xx\config 目录下的 machine.config 文件
是因为传入的参数大于系统默认配置的值。
修改配置,该方法可能有用,不敢确定,正在调试中...
asp.net web service默认的请求长度是4M,可以在web.config中重新设置,如下:
<configuration>
<system.web>
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
</system.web>
</configuration>
本文作者:网友 来源:网络收集
CIO之家 www.ciozj.com 微信公众号:imciow