Microsoft KB Archive/291088

= FIX: Generic Error Message with ServerXMLHTTP and a Long URL =

Article ID: 291088

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft XML Core Services 4.0

-



This article was previously published under Q291088



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 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



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
 Create the Col.asp file:  Create a new text document by using Windows Notepad or another text editor.  Paste the following code into the new text document: <%@ Language=VBScript %>    QueryString <% for each oFld in Request.QueryString Response.Write oFld & &quot; = &quot; & Request.QueryString(oFld) & &quot; &quot; next %> ServerVariables <% Response.Write oFld & &quot;VAR = &quot; & Request.ServerVariables(&quot;HTTP_hello&quot;) & &quot; &quot; %> </HTML> </li> Save the text file as Col.asp in the home folder of your default Web site (this is typically C:\InetPub\WWWRoot).</li></ol> </li> Create the setRequestHeader.vbs Windows script: <ol style="list-style-type: lower-alpha;"> Create a new text document by using Windows Notepad or another text editor.</li>  Paste the following code into the new text document: dim test Set test = WScript.CreateObject(&quot;Msxml2.ServerXMLHTTP&quot;)

dim str 'str=string(3,&quot;a&quot;) str=string(3000,&quot;a&quot;)

test.open &quot;GET&quot;, &quot;http://localhost/col.asp?longStr=&quot; & str, 0 test.setRequestHeader &quot;hello&quot;, str test.send WScript.Echo test.responseText </li> Save the text document as C:\setRequestHeader.vbs.</li></ol> </li> At a command prompt, you can execute the script by using the following command:

wscript C:\setRequestHeader.vbs

<ol style="list-style-type: lower-alpha;">  You can verify your configuration by testing with the string of 3 &quot;a&quot;s. In the setRequestHeader.vbs file, comment the following line of code str=string(3000,&quot;a&quot;) and uncomment the following line of code: str=string(3,&quot;a&quot;) </li>  You can generate the error by testing with the string of 3000 &quot;a&quot;s. In the setRequestHeader.vbs file, uncomment the following line of code str=string(3000,&quot;a&quot;) and comment the following line of code: str=string(3,&quot;a&quot;) </li></ol> </li></ol>

Keywords: kbbug kbfix kbmsxml300sp1fix kbmsxmlnosweep KB291088

-

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

© Microsoft Corporation. All rights reserved.