Win2003 SP2 IIS upload file cannot exceed 200K solution _win Server

Source: Internet
Author: User
Tags time limit metabase
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
Approach One:
First step: Modify the IIS settings to allow direct editing of the metabase. Open first, Internet Information Services, as shown below:

Step two: First in the service to shut down the IIS Admin service (run input iisreset/stop), find windows\system32\inesrv\ under the MetaBase.xml, open, Find aspmaxrequestentityallowed to change him to the desired value, default to 204800, or 200K, such as modifying it to 51200000 (50M).
Then restart the IIS Admin service. (Run in Iisreset/restart input)
Option two:
Create a new text file that reads as follows:
Copy Code code as follows:

'----------------------------------------------------
Set Providerobj=getobject ("Winmgmts:/root/microsoftiisv2")
Set vdirObj=providerObj.get ("Iiswebvirtualdirsetting= ' W3svc/1/root '")
WScript.Echo "Before:" & vdirobj.aspmaxrequestentityallowed
vdirobj.aspmaxrequestentityallowed=51200000
Vdirobj.put_ ()
WScript.Echo "Now:" & vdirobj.aspmaxrequestentityallowed
'----------------------------------------------------

Then save as a. vbs file, such as: Vf.vbs
Then, in command line mode, execute the Cscript file path and file name, such as:
cscript D:\vf.vbs
This ASP upload size is changed for the above set: 51200000 bytes (50 trillion)
Additional instructions on the Win2003 upload limit solution
To the Microsoft site, IIS6 Resource Kit Tools (http://www.microsoft.com/downloads/details.aspx? familyid=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en), after installation using Metabase Explorer modified (local) \lm\w3svc\ AspMaxRequestEntityAllowed Property (default is 200k=204800), modified to 1G is the same time, modify the AspScriptTimeout property adjust the time limit, you can upload large files.
At this point found aspmaxrequestentityallowed lost, point right to add the new property for the ASP, set their own needs, and then determine the size ~ ~ ~
Detailed Operation process Picture:
The first step: after the Microsoft site IIS6 Resource Kit Tools, double-click to install, the following interface appears:

Step two: Turn on: Start-Program Menu-iis resources-metabase Explorer, run Metabase Explorer.

Step three: Fill in the relevant information in the window that appears:


Fourth step: Select (local) \lm\w3svc in the program window

Step Fifth: Modify the (local) \lm\w3svc\aspmaxrequestentityallowed property and modify it to a larger value, such as 1G:

First step:
Step Two: The AspMaxRequestEntityAllowed object will appear, double-click the mouse. Appear:
The third step: click: General, the following settings.

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.