Request object Error ASP 0104:80,004,005

Source: Internet
Author: User
Tags file size metabase

Request object error ' ASP tutorial 0104:80004005′

Symptoms

The following error was encountered while uploading files to Windows Server + IIS 6.0 or iis7.0 server:

Request object error ' ASP 0104:80004005′

Operation is prohibited

Reason

iis6.0 and IIS7 prohibit uploading more than 200kb of files. So you need to modify the default settings for IIS.

Of course, this 200k limit is limited to no component upload, if the use of AspUpload upload without this limit.

Solving method

Iis6

First stop the IIS service, then open the MetaBase.xml in C:windowssystem32inetsrv and modify aspmaxrequestentityallowed for the value you need (for example, 1073741824, 1GB). Start the IIS service.

If you want to modify its profile while IIS is running, open IIS Manager, open the Internet Information Services properties panel, and check "Allow direct editing of the metabase tutorial to allow editing of the IIS metabase configuration file while IIS is running"

Iis7

Start Internet Information Services (IIS) Manager, select the site you want to modify, select the ASP icon, and in the restricted attribute, find the maximum request entity host limit, and change to the value you want.

Technical background

In IIS 6.0, the AspMaxRequestEntityAllowed property specifies the maximum number of bytes that can be used by an ASP request (request). If the Content-length header information contains a request that is longer than the aspmaxrequestentityallowed value, IIS returns a 403 error message.

This property value is similar to maxrequestentityallowed, but is requested for ASP. If you know that your ASP application only needs to handle very little request data, you can set the global MaxRequestEntityAllowed property to 1MB at the World Wide Web Publishing Service (WWW publishing services) level and separate Set the aspmaxrequestentityallowed to a smaller value.

Request object error ' ASP 0104:80,004,005 '

Operation not allowed

Analysis:

You can tell from the error of the hint that the data sent by the request is incorrect.

It suddenly occurred to me that Win2003 IIS6 the default received data is 200KB may be post data over 200kb

Solution:

First, open IIS view the properties on the local computer as shown below:

Check to allow direct editing of the configuration database

Second, the c:windowssystem32inetsrv the MetaBase.xml in the Open

Find aspmaxrequestentityallowed= "204800"

Change the back 204800 to a larger value.

and then save.

Look at the moving error number:-2147467259

Error Description: Request object error ' ASP 0104:80,004,005 ' does not allow operation ~

Source of error: Request object

Windows2003 system, the "Request object error ' ASP 0104:80,004,005 ' error occurs when uploading larger files."

Changing Win2003 IIS 6.0 has a 200k limit on the ASP's upload file size, and the ASPX upload program has no effect. In iis6.0, the default setting is particularly strict and secure, with a maximum of 204,800 bytes to be transferred, minimizing the attack caused by previously too loose timeouts and restrictions. IIS 6 for security reasons, the default maximum request is 200k (that is, the maximum submission data limit is 200kbyte,204800byte). (There is no such limit in the version prior to IIS 6.0)

Solution

First step: Modify the IIS settings to allow direct editing of the metabase. Open first, Internet Information Services,

Step two: First in the service to shut down the IIS Admin Service, find windowssystem32inesrv under the MetaBase.xml, open, find aspmaxrequestentityallowed change him to the desired value, The default is 204800, or 200k, such as modifying it to 51200000 (50m).

Then restart the IIS Admin service.

Related Article

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.