Microsoft KB Archive/302820

= PRB: The Send Object of XMLHttp May Fail with 0x800C0008 =

Article ID: 302820

Article Last Modified on 10/12/2001

-

APPLIES TO


 * Microsoft XML Parser 2.6
 * Microsoft XML Core Services 4.0
 * Microsoft XML Core Services 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.



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

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

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

Keywords: kbprb KB302820

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.