IIS 6 出於安全考慮, 預設最大請求200K(也即最大提交資料配額為200KByte, 204800Byte).
解決辦法:
Code:
1. 關閉 IIS Admin Service 服務
2. 開啟 \Windows\system32\inesrv\metabase.xml
3. 修改 ASPMaxRequestEntityAllowed 的值為自己需要的, 預設為 204800
4. 啟動 IIS Admin Service
Addon: 解決方法2
1. 新增文本文件:
Code:
'use VBS
set obj1=GetObject("winmgmts:/root/MicrosoftIISv2")
set obj2=obj1.get("IIsWebVirtualDirSetting='W3SVC/1/ROOT'")
'Output default value
WScript.Echo "AspMaxRequestEntityAllowed Default 類型: " & obj2.AspMaxRequestEntityAllowed
'Reset the value
obj2.AspMaxRequestEntityAllowed=1024000 ' set to 1mbyte, u can set to other what you want
' Save data
obj2.Put_()
'Output new value
WScript.Echo "AspMaxRequestEntityAllowed New 類型: " & obj2.AspMaxRequestEntityAllowed
2. 儲存為 Code:
requestchange.vbs
3. 進入指令行, 執行:
Code:
cscript [path]requestchange.vbs