Iis ASP 0104: 80004005 does not allow Operation Solution

Source: Internet
Author: User
Tags metabase

My code is simple

<%
'------------------------------------------------------------
'Use form submission to generate static homepage code
'Make sure your space supports FSO, And the homepage code has less content.
'------------------------------------------------------------
Dim content
Content = Trim (Request. Form ("content "))
If content <> "" then
Call makeindex ()
End if
Sub makeindex ()
Set Fso = Server. CreateObject ("Scripting. FileSystemObject ")
Filen = Server. MapPath ("../sitemap.htm ")
Set Site_Config = FSO. CreateTextFile (Filen, true, False)
Site_Config.Write content
Site_Config.Close
Set Fso = Nothing
Response. Write ("<script> alert ('the website map without graph acceleration has been generated successfully! ') </Script> ")
End sub
%>


File Upload error: Request object error ASP 0104: 80004005 not allowed
Cause: IIS6.0 prohibits uploading files larger than kb. Therefore, you need to modify the default settings of IIS.
Solution: Open metabase. XML in C: WindowsSystem32Inetsrv, and modify AspMaxRequestEntityAllowed to the value you need (for example, 51200000, 50 MB )..

Suggestion: it is best to disable the World Wide Web Hing Service (WWW Publishing service) and iis admin Service in the "service;
Note: If the IIS service is not stopped before editing the file, the modified file cannot be saved. If you want to modify the configuration file When iis is running, open the iis manager, open "internet Information Service"-website-"properties" panel, and select "allow direct editing of Database Configuration tutorial, allow editing of iis configuration database configuration file When iis is running ".

You are win2003. I use xp (iis5.1 ):
However, it seems that I have never met this situation. I often upload data larger than 1 MB and have never made any settings.

If the above method does not work, try the following method

ASP 0104: 80004005
Problem: WIN2003 cannot upload a large file. The "Request object error 'asp 0104: 66661'
Solution:
1. Open IIS manager first:
2. Disable the iis admin service.
Find metabase. xml under windowssystem32inesrv,
Open and find ASPMaxRequestEntityAllowed to change it to the desired value,
The default value is 204800, that is, 200 K. Change it to 20480000 (20 M ).
Restart the iis admin service.


Ii. Solve the ASP Component-less upload error: the Request object error 'asp 0104: 66661' is not allowed to operate --- 80004005 server

Symptoms:
When uploading files to Windows 2003 server + IIS 6.0 server, the following error occurs:
Request object error 'asp 0104: 66661'
Operation prohibited
/Upload. asp tutorial, line 40

Cause:
IIS6.0 prohibits uploading files larger than kb. Therefore, you need to modify the default settings of IIS.

Technical Background
In IIS 6.0, the AspMaxRequestEntityAllowed attribute specifies the maximum number of bytes that an ASP Request can use. if the request Length contained in the Content-Length header exceeds the value of AspMaxRequestEntityAllowed, IIS returns a 403 error message.
This attribute value is similar to MaxRequestEntityAllowed, but is for ASP requests. if you know that your ASP application only needs to process a small amount of request data, you can set the global MaxRequestEntityAllowed attribute at the World Wide Web Hing Service (WWW Publishing Service) level to 1 MB, set AspMaxRequestEntityAllowed to a smaller value.

Solution
Open metabase. XML in C: WindowsSystem32Inetsrv, and modify AspMaxRequestEntityAllowed for the value you need (such as 51200000, 50 MB ).

Note: If the IIS service is not stopped before editing the file, the modified file cannot be saved.

If you want to modify the configuration file When iis is running, open the iis manager, open the internet information service attribute panel, and select "allow direct editing of the configuration database, allows you to edit the iis configuration database configuration file When iis is running"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.