[英]Increasing Max Upload File Size on IIS7/Win7 Pro
我正在為客戶端設置服務器(我通常不會這樣做),而且我遇到了上傳大文件(11MB)的問題。 服務器正在運行添加了IIS的Windows 7 Professional。
在web.config中我嘗試過設置
<system.web>
<httpRuntime maxRequestLength="65536" /> <!-- 64MB -->
</system.web>
......那不起作用。
我已經定了
<system.webSecurity>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="68157440" />
</requestFiltering>
</security>
</system.webSecurity>
......那也不起作用。
我在這里錯過了什么? 正如我所說,我通常不會設置服務器,因此我可能會遺漏一些明顯的東西......沒有任何建議會被嘲笑!
提前致謝。
更改system.webSecurity
到system.webServer
。
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800"/>
</requestFiltering>
</security>
</system.webServer>
如果這不起作用(由於權限分支),請使用提升的命令提示符下的appcmd進行設置:
appcmd set config“wms / wmsdev”-section:requestFiltering -requestLimits.maxAllowedContentLength:52428800
更多信息: http : //bloggingabout.net/blogs/ramon/archive/2009/03/13/how-to-enable-large-file-uploads-in-iis7.aspx
事實證明這是前端使用的組件的問題。
值得注意的是(對於將來遇到這種情況的任何人),雅各布和丹的建議都需要這項工作。
無論如何,謝謝你的幫助! 非常感激!
如果它超時,我會將executionTimeout=”50000″
添加到您的httpRuntime元素。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.