Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> 電腦軟體教學 >> 伺服器技術 >> 關於伺服器

解決 Windows Server 2003 IIS 無法上傳大檔案的限制問題

編輯:關於伺服器

在 IIS 6.0 環境下,上傳大檔案常遇到「Request 物件錯誤 ASP 0104 : 80004005」或上傳後找不到檔案。根因是 IIS 預設將最大請求實體限制在 200KB(ASPMaxRequestEntityAllowed = 204800)。需修改 Metabase 組態資料庫方能突破限制。

操作步驟

  1. 開啟「Internet 資訊服務 (IIS) 管理員」→ 本地電腦右鍵「屬性」→ 勾選「允許直接編輯組態資料庫」。
  2. 停止 IIS Admin Service 服務(服務管理工具或 net stop iisadmin)。
  3. 以記事本開啟 C:\Windows\system32\inetsrv\metabase.xml。
  4. 搜尋 ASPMaxRequestEntityAllowed,將預設值 204800 修改為所需大小(單位位元組),例如 50MB 設為 51200000。
  5. 儲存檔案,重新啟動 IIS Admin Service 服務即可生效。

提醒:修改 Metabase 具風險,建議先備份原檔。若需支援更大檔案,同步調整 AspBufferingLimit 等相關參數。

Copyright © Windows教程網 All Rights Reserved