Microsoft VBScript runtime error "800a0005" invalid process call or parameter: "CHR"

Source: Internet
Author: User

Yesterday, I retried the system on the company server and encountered ASP attachments that could not be uploaded. Previously, the server was used properly and it was not normal to redo the system. So Google and Baidu will provide the solution below, to help friends who encounter this problem avoid detours:
1. Permission issues

Make sure that the "Guest user" folder of the file you uploaded has the write permission, some are saved to the database, and you must also have the modification permission.

2. File Size Limit

For security reasons, IIS 6 requests a maximum of 200 kb by default (that is, the maximum data submission quota is 200 Kbyte, 204800 bytes ).

Solution:
Disable IIS Admin Service
Open \ windows \ system32 \ inesrv \ metabase. xml
Modify the value of aspmaxrequestentityallowed as needed. The default value is 204800.
Start IIS Admin Service
After modification, you also need to modify the machine. config file
In Asp.net, the default size of the uploaded file is 4096 kb, that is, 4 M. However, you can change the data in Web. config. Generally, you can directly modify c: \ windows \ Microsoft. net \ framework \ v1.1.4322 \ config directory machine. config File (the Framework version will be different, and the directory of the version you use will be entered), find httpruntime in this line to change the value of maxrequestlength to the ideal value, such as 8 m, then, enter 8192.

3. Install IIS patch in Chinese System

After inspection, it was found that the customer used the Windows 2003 Chinese version of the host, and later changed to the Windows English version of the space, and the result was wrong.

Generally, after the system is upgraded to IIS or patched, the same problem sometimes occurs. We only need to add a section before the ASP file.Code

<! -- Must be fist line in ASP -->

<% @ Lcid = 4100%>

4. Language Problems

Set the region to China in the control panel]

5. Date and Time Problems

In the control panel, set the region and language options to H: mm: SS and change the time zone to Beijing in the control panel "Date and Time. (This is because some attachments are uploaded with time names. If the time format is incorrectProgramError)

6. The name or path of the uploaded file

If you use ASP to upload without components, you must check whether the upload path contains Chinese characters because it does not support Chinese characters.

7. "Microsoft VBScript runtime error '800a0005 'invalid process call or parameter: 'chr'" is reported (this is my problem)

Microsoft VBScript runtime error '800a0005 'invalid procedure call or argument: 'chr'/admin/INC/upload. Inc,

Line 75 may encounter this error because the server uses an English version because the CHR function returns a string containing Characters Related to the specified character code.

Related Syntax: The charcode parameter necessary for CHR (charcode) is a long string used to recognize a character. Note: Numbers between 0 and 31 are the same as standard non-printable ASCII code.

For example, CHR (10) can return line breaks. The normal charcode range is 0-255. However, in the DBCS system, the actual charcode range is-32768 to 65535. Note: The chrb function acts on the byte data contained in the string. Chrb always returns a single byte instead of a single character. A character may be one or two bytes. The chrw function returns a string that contains Unicode. If Unicode is not supported, the function is the same as the CHR function.

So replace CHR in the line75 line of code with stemp = stemp & CHR (ASCW (chrb (ASCB (upfile_5xsoft_stream.read (1) & chrb (c) with chrw.

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.