在machine.config里面更改
<httpRuntime executionTimeout="3600" maxRequestLength="1048576" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" />
把maxRequestLength改大些就行了!

解决方案 »

  1.   

    asp.net默认最大上传文件大小为4096  
    修改web.config文件可以改变这个默认值  
    <configuration>  
       <system.web>  
             <httpRuntime  maxRequestLength="10000"  ......>  
       </system.web>  
    <configuration> 
      

  2.   

    在web.config中<system.web></system.web>内加入
    <httpRuntime maxRequestLength="你限制的kb数(默认4096k)"></httpRuntime>
    就可以了
    但我试过,不能太大,百兆以上就不成了。
      

  3.   

    这样也可以:this.uploadFile.PostedFile.ContentLength<4M的字节
      

  4.   

    asp.net默认最大上传文件大小为4096k  
    修改web.config文件可以改变这个默认值  
    <configuration>  
       <system.web>  
             <httpRuntime  maxRequestLength="800000"  ......>  
       </system.web>  
    <configuration>