PRB: The Send Object of XMLHttp May Fail with 0x800C0008 (302820)



The information in this article applies to:

  • Microsoft XML 2.6
  • Microsoft XML 3.0
  • Microsoft XML 4.0

This article was previously published under Q302820

SYMPTOMS

When you use the Send method of XMLHttp on XML 2.6 or later, you may see a return result code of 0x800C0008.

CAUSE

There are no languages specified in Internet Explorer.

RESOLUTION

To check these settings in Internet Explorer, click Tools, click Internet Options, and then click Languages.... If this box is empty, add at least one language.

MORE INFORMATION

Steps to Reproduce This Behavior

If a newer version of MSXML has been installed in side-by-side mode, you must explicitly use the Globally Unique Identifiers (GUIDs) or ProgIDs for that version to run the sample code. For example, MSXML version 4.0 can only be installed in side-by-side mode. For additional information about the code changes that are required to run the sample code with the MSXML 4.0 parser, click the following article number to view the article in the Microsoft Knowledge Base:

305019 INFO: MSXML 4.0 Specific GUIDs and ProgIds


  1. Clear the languages section in Internet Explorer.
  2. Use the following code to create a Receiver.asp file on the Internet Information Services (IIS) server:
    <%@language=vbscript%>
       <%
       	value = Request.Form("id")
       	Response.ContentType = "text/xml"
       	response.write "<ReturnValue>" & value & "</ReturnValue>"
       %>
    						
  3. On the client, create a Windows Scripting Host file named Test.vbs using the following code:

    NOTE: Replace <ServerName> with the name of your IIS server.
    DataToSend = "id=1"
    Change 2.6 to reflect the installed version of the Microsoft XML Parser; for MSXML 4, use 4.0
    Set xmlhttp = CreateObject("MSXML2.XMLHTTP.2.6")
    xmlhttp.open "POST", "http://servername/receiver.asp", False
    xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    xmlhttp.send DataToSend
    WScript.Echo xmlhttp.responseXML.xml
    						
  4. Run Test.vbs. You should see the error code returned in a dialog box.

Modification Type:MajorLast Reviewed:10/12/2001
Keywords:kbprb KB302820