2010-10-06 60 views
0

文件上传当我上传35MB大小的文件或多个它给服务器错误,而在asp.net MVC2

Server Error 
404 - File or directory not found. 
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. 

,如果我上传大小25MB或小于其正常工作的文件。只有当我在服务器上部署它时,才会出现这个问题,如果我在我的本地系统上运行它,它将完美运行。有一件事我想告诉我,我的web.config中已覆盖httpruntime设置,它具有

<httpRuntime maxRequestLength="3145728" executionTimeout="1200" requestValidationMode="2.0"/> 

可能是什么问题?

回答

1

经过两次天,我发现给我的回答和问题是,IIS7有最大的文件上传限制是3000个字节,大约是29MB

2

幸运的是,可以在该网站启用备用解决方案级别而不是服务器范围。

来源:http://www.webtrenches.com/post.cfm/iis7-file-upload-size-limits

+0

解决这个问题后,我已经在写http://frazsundal.blogspot.com/2011/02/request-filtering-module-is-博客文章configured.html – 2011-03-08 12:58:17