请教C#。net高手:点击下载文件时,大于4M的文件就不能下载(上传大于4M的没问题)。提示:服务器应用程序不可用
 
web.config文件我修改如下:
<httpRuntime   maxRequestLength="150000"
                    useFullyQualifiedRedirectUrl="true"
                    executionTimeout="100"   /> 请高手指教

解决方案 »

  1.   

    下载好像没有限制吧,你是如何返回文件给客户端的?
    另外executionTimeout的格式是:
    executionTimeout = "HH:MM:SS"  例如"00:01:50" 是110秒
      

  2.   

    还有Try using Response.TransmitFile() instead of WriteFile(). TransmitFile()
    doesn't buffer the file.转自:http://www.velocityreviews.com/forums/t301649-file-download-size-limit.html
      

  3.   

    <td><a href="Main.aspx?path=<%= Server.UrlEncode(folderPath) %>&amp;order=name">名称</a></td>就是一个链接,但就是出问题
      

  4.   

    你在Main.aspx中是不是写了什么返回语句啊?那里边会不会有什么问题?没遇见过,可以一起探讨下