天天看點

C# 上傳檔案大小限制設定

(1)在web.comfig檔案中添加一個httpRuntime主鍵 

<httpRuntime executionTimeout="90" 

maxRequestLength="40960" useFullyQualifiedRedirectUrl="false" 

minFreeThreads="8" minLocalRequestFreeThreads="4" 

appRequestQueueLimit="100"/> 

maxRequestLength="40960" 是最大的請求數,機關為:K 

(2)修改C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config檔案 

<httpRuntime executionTimeout="190" maxRequestLength="40960" 

本文轉自 netcorner 部落格園部落格,原文連結:http://www.cnblogs.com/netcorner/p/3158294.html   ,如需轉載請自行聯系原作者

繼續閱讀