Win2003's IIS 6.0 for the upload file size of ASP is 200K

xiaoxiao2021-03-06  58

The Louison website management system cannot upload attachments under Windows 2003 Server, whether it is an article or software upload: Request Object Error 'ASP 0104: Error, follow the instructions below step by step:

Change Win2003's IIS 6.0 for the upload file size of ASP is 200K

The uploading procedures for ASPX have no effect. In IIS6.0, the default settings are especially stringent and secure, and only 204,800 bytes can be transmitted, which minimizes attacks caused by the previous timeout and restrictions of too loose. IIS 6 is for security reasons, the default maximum request is 200K (i.e., the maximum submission data limit is 200kbyte, 204800byte). (No this limit in the version before IIS 6.0)

Solution 1:

Create a new text file, the content is 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 saved as .vbs file, such as: vf.vbs, in command line mode, execute CScript File path and file name, such as: CScript D: /VF.vbs This ASP upload size is changed to the above set: 51200000 bytes (50 triggered)

Workaround 2:

Step 1: Modify IIS settings, allow direct editing of configuration database, as shown below: Step 2: First close the IIS Admin Service service in the service to find Metabase.XML under Windows / System32 / Inesrv / under the service, open, find AspMaxRequestentityAllowed He modified to the value required, the default is 204800, that is, 200K to modify it to your desired size. Such as: 51200000 (50M) then restart IIS Admin Service service.

转载请注明原文地址:https://www.9cbs.com/read-83679.html

New Post(0)