IIS 7 默認文件上傳大小是30M 要突破這個限制:
修改IIS的applicationhost.config
打開 c:/windows/system32/inetsrv/config/applicationhost.config
找到: <requestFiltering>節點,
這個節點默認沒有 <requestLimits maxAllowedContentLength="上傳大小的值(單位:byte)" /> 元素,IIS 7和IIS 7.5上測試過
最大值只能是<requestLimits maxAllowedContentLength="4294967295" /> <4GB,
為這個節點新增如下事例元素:<requestLimits maxAllowedContentLength="2147483647" /> ,上傳的大小將改為2G
注意: %windir%/system32/inetsrv/config/applicationhost.config 文件一定不要用其他機器的文件替換,否則IIS將無法啟動 此文件記錄了,當前IIS中所有Site , App pool的信息,還有一些與機器相關的配置。