Workaround for "007~asp 0104~ do not allow operation" error (plot)

Source: Internet
Author: User

Today test a z-blog program upload file found the total hint "007~asp 0104~ not allowed to operate" error, after the degree of the help of friends, finally found a solution.

This is the windows2003 server to upload the file restrictions caused by the default upload file can only be 200K. You can increase the upload file size limit in the following ways.

Method One:

The first step: Modify the IIS settings to allow direct editing of the configuration database. Open first, Internet Information services



The second step: Find C:\windows\system32\inetsrv\ under the MetaBase.xml, open, find aspmaxrequestentityallowed to change him to the desired value, the default is 204800, that is, 200K, If you modify it to 2048000 (20M), the immediate effect of the failure, if you can not upload, please restart IIS.


Method Two:
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=2048000

Vdirobj.put_ ()

WScript.Echo "Now:" & vdirobj.aspmaxrequestentityallowed

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

Then save the. vbs file to the D drive, such as: Iis.vbs

Then, in command-line mode, execute the cscript file path and filename, such as:

cscript D:\iis.vbs

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

Not only this one program, and other programs sometimes have such errors occur, you may wish to use this method to try.


Error---

Cause of error: Unknown error

id:-**********

Summary:
007~asp 0104~ not allowed to operate ~

Request Object

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.