2012-01-16 74 views
0

我使用的文件上传控制器,当我使用大小的文件上传documents.Here说30MB我收到一个错误说如何上传文件上传通过控制大文件在asp.net

“加载页面时,服务器连接重置。“

它甚至没有去上传按钮点击事件。

文件上传控制器适用于较小文件的文件。

我是uinsg VS2005和C#。

回答

1

您必须使用httpruntime模块,在web.config文件的配置节中使用MaxRequestLength属性。

MaxRequestLength Property你可以使用这样的代码,

<configuration> 
     <system.web> 
     <httpRuntime maxRequestLength="31457280" executionTimeout="36000" /> 
     </system.web> 
    </configuration> 
0
add this to your web config 

    <configuration> 
     <system.web> 
     <httpRuntime maxRequestLength="31457280" /> 
     </system.web> 
    </configuration>