解決ASP無組件上傳錯誤:Request 對像 錯誤 ‘ASP 0104 : 80004005′ 不許操作

來源:互聯網
上載者:User
ASP 0104 : 80004005
Win2003 ASP上傳大小限制

解決ASP無組件上傳錯誤:Request 對像 錯誤 'ASP 0104 : 80004005' 不許操作—2003 server

癥狀:
上傳檔案到 Windows 2003 server + IIS 6.0 伺服器的時候遇到下列錯誤:
請求對像錯誤 'ASP 0104 : 80004005' 
操作被禁止
/Upload.asp, line 40

原因:
IIS6.0 禁止上傳超過 200kB 的檔案. 因此你需要修改 IIS 的預設設定.

技術背景
在 IIS 6.0 中, AspMaxRequestEntityAllowed 屬性指定了一個 ASP 請求(Request)可以使用的最大位元組數. 如果 Content-Length 頭資訊中包含的請求長度超過了 AspMaxRequestEntityAllowed 的值, IIS 將返回一個 403 錯誤資訊. 
這個屬性值與 MaxRequestEntityAllowed 相似, 但是是針對 ASP 請求的. 假如你知道自己的 ASP 應用只需要處理很少的請求資料, 你可以在 World Wide Web Publishing Service (WWW 發佈服務)層級設定全域的 MaxRequestEntityAllowed 屬性為 1MB, 並單獨設定 AspMaxRequestEntityAllowed 為一個較小的值.

解決方案
開啟位於 C:\Windows\System32\Inetsrv 中的 metabase.XML, 並修改 AspMaxRequestEntityAllowed 為你需要的值(例如 51200000, 50MB).

注意: 在編輯檔案前如果沒有停止 IIS 服務, 則無法儲存修改後的檔案

若你想在iis啟動並執行時候修改其設定檔,則開啟iis管理器,開啟internet資訊服務屬性面板,鉤選「允許直接編輯設定資料庫,允許在iis運行時編輯iis設定資料庫設定檔」

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.