在web.config文件里的下面这对标志中间加入<httpRuntime maxRequestLength="4096"   executionTimeout="3600"/>这一句。<system.web> </system.web>使之成为:
<system.web>
   <httpRuntime
    maxRequestLength="4096"//这里的4096就是4m,原先是默认的。你改一下这个,就可以了。
    executionTimeout="3600"
   />
</system.web>:P

解决方案 »

  1.   

    By default, ASP.NET only permits files that are 4,096 kilobytes (KB) (or 4 MB) or less to be uploaded to the Web server. To upload larger files, you must change the maxRequestLength parameter of the <httpRuntime> section in the Web.config file.If you want to change this setting for all of the computer and not just this ASP.NET application, you must modify the Machine.config file.By default, the <httpRuntime> element is set to the following parameters in the Machine.config file: 
    <httpRuntime 
    executionTimeout="90" 
    maxRequestLength="4096"
    useFullyQualifiedRedirectUrl="false" 
    minFreeThreads="8" 
    minLocalRequestFreeThreads="4"
    appRequestQueueLimit="100"
    /> 
    The Machine.config file is located in the C:\WINNT\Microsoft.NET\Framework\v1.0.3705\CONFIG directory.
      

  2.   

    <system.web>
       <httpRuntime
        maxRequestLength="4096"//这里的4096就是4m,原先是默认的。你改一下这个,就可以了。
        executionTimeout="3600"
       />
    </system.web>
      

  3.   

    虽然修改一下就可以,但是文件太大了也不行,再大一点就FTP吧
      

  4.   

    <system.web>
       <httpRuntime
        maxRequestLength="4096"//这里的4096就是4m,原先是默认的。你改一下这个,就可以了。
        executionTimeout="3600"
       />
    </system.web>楼上说的对,如果文件太大传送也容易出问题,太大的文件最好用FTP!!
      

  5.   

    maxRequestLength="4096"//这里的4096就是4m,原先是默认的。你改一下这个,就可以了。
      

  6.   

    改一下下面的地方:
    <system.web>
       <httpRuntime
        maxRequestLength="4096"//这里的4096就是4m,原先是默认的。你改一下这个,就可以了。
        executionTimeout="3600"
       />
    </system.web>