2010-10-06 71 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