Microsoft Knowledge Base Email Alertz

When you use the

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 291088 - Last Review: October 16, 2002 - Revision: 1.4

FIX: Generic Error Message with ServerXMLHTTP and a Long URL

This article was previously published under Q291088

On This Page

SYMPTOMS

When you use the Open method of the ServerXMLHTTP object to retrieve an Active Server Pages (ASP) page using a long query string on the URL, you may receive one of the following error messages, rather than a meaningful error message:
Catastrophic Failure
-or-
0x80004005 Unspecified error

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Microsoft XML 3.0 Service Pack 1.

For additional information on other fixes included in Microsoft XML 3.0 Service Pack 1, click the article number below to view the article in the Microsoft Knowledge Base:
292935  (http://kbalertz.com/Feedback.aspx?kbNumber=292935/EN-US/ ) INFO: List of Issues Fixed in Microsoft XML 3.0 Service Pack 1
For the latest information and downloads of MSXML, refer to the following MSDN Web site at:
http://msdn.microsoft.com/xml/default.asp (http://msdn.microsoft.com/xml/default.asp)

MORE INFORMATION

The Service Pack 1 version of the MSXML parser returns the following error message:
0x80072EE5 The URL is invalid

Steps to Reproduce Behavior

  1. Create the Col.asp file:
    1. Create a new text document by using Windows Notepad or another text editor.
    2. Paste the following code into the new text document:
      <%@ Language=VBScript %>
      <HTML>
      <HEAD><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"></HEAD>
      <BODY>
      <p><b>QueryString</b><br>
      <% for each oFld in Request.QueryString
          Response.Write oFld & " = " & Request.QueryString(oFld) & "<br>"
         next %>
      </p>
      <p><b>ServerVariables</b><br>
      <% Response.Write oFld & "VAR = " & Request.ServerVariables("HTTP_hello") & "<br>"
      %>
      </p></BODY></HTML>
      						
    3. Save the text file as Col.asp in the home folder of your default Web site (this is typically C:\InetPub\WWWRoot).
  2. Create the setRequestHeader.vbs Windows script:
    1. Create a new text document by using Windows Notepad or another text editor.
    2. Paste the following code into the new text document:
       dim test
       Set test = WScript.CreateObject("Msxml2.ServerXMLHTTP")
      
       dim str
      'str=string(3,"a")
       str=string(3000,"a")
      
       test.open "GET", "http://localhost/col.asp?longStr=" & str, 0
       test.setRequestHeader "hello", str
       test.send
       WScript.Echo test.responseText
      						
    3. Save the text document as C:\setRequestHeader.vbs.
  3. At a command prompt, you can execute the script by using the following command:
    wscript C:\setRequestHeader.vbs
    1. You can verify your configuration by testing with the string of 3 "a"s. In the setRequestHeader.vbs file, comment the following line of code
      str=string(3000,"a")
      and uncomment the following line of code:
      str=string(3,"a")
    2. You can generate the error by testing with the string of 3000 "a"s. In the setRequestHeader.vbs file, uncomment the following line of code
      str=string(3000,"a")
      and comment the following line of code:
      str=string(3,"a")

APPLIES TO
  • Microsoft XML Parser 3.0
Keywords: 
kbbug kbfix kbmsxml300sp1fix kbmsxmlnosweep KB291088
       

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