在machine.config里面更改
<httpRuntime executionTimeout="3600" maxRequestLength="1048576" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" />
把maxRequestLength改大些就行了!
<httpRuntime executionTimeout="3600" maxRequestLength="1048576" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" />
把maxRequestLength改大些就行了!
修改web.config文件可以改变这个默认值
<configuration>
<system.web>
<httpRuntime maxRequestLength="10000" ......>
</system.web>
<configuration>
<httpRuntime maxRequestLength="你限制的kb数(默认4096k)"></httpRuntime>
就可以了
但我试过,不能太大,百兆以上就不成了。
修改web.config文件可以改变这个默认值
<configuration>
<system.web>
<httpRuntime maxRequestLength="800000" ......>
</system.web>
<configuration>