Win2003/win7 IIS7 and IIS6 solutions for unable to upload large files

Source: Internet
Author: User
Tags metabase

Workarounds for Windows 2003 server

The attachment cannot be uploaded under Windows 2003 server, whether it is an article or a software upload: Request object error ' ASP 0104: Error, follow the instructions below to step through:

The upload file size of the ASP tutorial for changing Win2003 IIS 6.0 is limited to 200k, and the ASPX upload program has no effect. In IIS6.0, the default setting is particularly strict and secure, with a maximum of only 204,800 bytes, which minimizes attacks due to previously too loose timeouts and limitations. IIS 6 For security reasons, the default maximum request is 200K (that is, the maximum commit data limit is 200kbyte,204800byte). (This limit is not available in versions prior to IIS 6.0)

Solution One:

Create a new text file with the following contents:

‘----------------------------------------------------

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 filename, such as:

cscript D:vf.vbs

In this way, the ASP upload size is changed for the above setting: 51200000 bytes (50 megabytes)

Solution Two:

The first step: Modify the IIS settings to allow direct editing of the metabase tutorial as shown in:

Step two: Turn off the II (www.111cn.net) s admin Service in service first

Find the MetaBase.xml under the Windowssystem32inesrv,

Open, find aspmaxrequestentityallowed to change him to the desired value, the default is 204800, that is, 200K to change it to the size you want. Example: 51200000 (50M)

Then restart the IIS Admin Service services.

Solutions to Wi7

Windows7 a lot of people have already used, like to tinker Web site presumably also opened the IIS used to debug their own website, but Win7 adopted is IIS7, interface and Setup method and XP, Win2003 very different, how to modify the limit upload file size problem is quite a hassle,  Most of the information found on the Internet is for XP and Win2003, Win7 there is no MetaBase.xml this file. One article says, "Double-click ASP in IIS – Open the" Configure ASP for program's Properties "– Expand the" Limit properties ", modify the" Maximum request entity principal limit "value, the default value is 200000; change it to the size you want to modify", I have done the kind of painting scoop, or not! " Bored to study the site background error message, which refers to the "request filtering ...", the desktop Open "Internet Information Services (IIS) Manager" does not have a "request filtering" configuration? Open look, inside sure great article, click "Edit function Settings" can see here also "request Limit", modify below: "Maximum allowed content length", default is 30M, arbitrarily change a little bit, I changed to 300M, click "OK", restart IIS, upload try, 50M, 90M can do it all.

To summarize the previous modification steps, there are two steps to opening the 200k upload limit in the Win7 IIS configuration:

One, from the ASP configuration to modify the "Maximum request entity principal limit" value;

Second, modify the value of maximum allowed content length from the request filtering configuration. These two steps should be in no particular order.

Another article says this is modified: Open the Windowssystem32inetsrvconfigschema folder of the partition where the system is located, and then open the Iis_schema.xml with Notepad to find and then modify the value of 30000000. But my trial results are unsuccessful, to administrator super User login to modify, save prompt without permission, the file is read-only, can not modify the file attributes, so I personally think this method is not suitable for the general user. Below is my every operation step, has the basic one to understand, can not understand the combination text explanation.

Win2003/win7 IIS7 and IIS6 solutions for unable to upload large files

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.