An error occurred while generating an HTML webpage on the Godaddy server in the United States. Microsoft VBScript runtime error '800a0005 ′

Source: Internet
Author: User
Tags godaddy server
Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument

/Admin456/html_makeflash.asp, line 76

The above is a prompt error, and the following is my program code
Set rs = server. Createobject ("ADODB. recordset ")
Rs. Open ("Select Show from MB"), Conn, 1, 1
Pencat = RS ("show ")
Rs. Close

Pencat = Replace (pencat, "webname", webname)

Set FSO = server. Createobject ("scripting. FileSystemObject ")
Set fout = FSO. createtextfile (server. mappath ("../flash/" & request ("ID") & ". htm") '76th rows
Fout. Write pencat (this error is reported)
Fout. Close

Response. Write "generated successfully" & flashname &"

 

========================================================== ==================================== Solution

 

Solution --------------------------
1. Add the following code to line 1 of all pages containing ASP code (that is, all *. asp files): <% @ codePage = "1st" %>
If row 1st is <% @ Language = "VBScript" %>, change row 1st to: <% @ codePage = "936" Language = "VBScript" %>
936 is a simplified Chinese code page, which can ensure that the content dynamically generated by ASP remains unchanged.

2. Check all files again to make sure that there is such a sentence between <Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
Gb2312 is the default encoding for simplified Chinese. This ensures that the static content on your page remains unchanged and garbled.

3. Set fout = FSO. createtextfile (server. mappath ("../flash/" & request ("ID") & ". htm"), true, true)
2nd if the parameter is set to true, it indicates that it is created in Unicode mode.
If not, change this sentence to "fout. writeline pencat ".

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.