Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 302820 - Last Review: October 12, 2001 - Revision: 1.0
PRB: The Send Object of XMLHttp May Fail with 0x800C0008
This article was previously published under Q302820
On This Page
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Â
(http://kbalertz.com/Feedback.aspx?kbNumber=305019/EN-US/
)
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("id")
Response.ContentType = "text/xml"
response.write "<ReturnValue>" & value & "</ReturnValue>"
%>
- 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
- Run Test.vbs. You should see the error code returned in a dialog box.
APPLIES TO
- Microsoft XML Parser 2.6
- Microsoft XML Parser 3.0
- Microsoft XML Core Services 4.0
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please