Microsoft KB Archive/302080

= BUG: &quot;Access is denied&quot; Error Message When Making HTTPS Requests with ServerXMLHTTP =

Article ID: 302080

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft XML Core Services 4.0
 * Microsoft XML Parser 3.0 Service Pack 1

-



This article was previously published under Q302080



SYMPTOMS
When you make HTTPS requests between Web servers by using the ServerXMLHTTP request object, you may receive the following error message:

&quot;Access is denied&quot; -2147024891 (80070005)



CAUSE
Secure Sockets Layer (SSL) certificate support was added to the ServerXMLHTTP request object with the release of MSXML version 3.0 Service Pack 1. To make any SSL requests from the Web server, ServerXMLHTTP expects a client digital certificate to be installed, even if the target Web server does not require a client certificate.



RESOLUTION
To work around this problem, do one of the following:  Run the Active Server Pages (ASP) application in Microsoft Internet Information Server (IIS) and set the application protection level to Low (IIS Process). If the ASP application is configured as out-of-process and the application protection level is set to Medium (Pooled) or High (Isolation), install a client certificate under the MY store of the IWAM_machinename user account.For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

301429 HOWTO: Install Client Certificate on IIS Server for ServerXMLHTTP Request Object





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

This bug has been fixed in the MSXML 3.0 SP2 release. This can be downloaded from the following URL:

MSXML Parser 3.0 Service Pack 2 Release



MORE INFORMATION
If the client certificate is not properly installed, you may receive the following error message along with the main error message:

msxml3.dll (0x80072F0C) A certificate is required to complete client authentication

Steps to Reproduce Behavior
The test requires two Web servers, ServerA and ServerB. One server is a target Web server with a valid SSL server certificate installed, and the other is a client Web server.  Install a valid SSL server certificate on ServerA.  On ServerA, save the following code as Targetpage.asp: <%@ Language=&quot;JScript&quot; %> <% Response.Buffer=true ;

var oxmldom = Server.CreateObject(&quot;MSXML2.DOMDocument.3.0&quot;); oxmldom.async=false;

oxmldom.loadXML(&quot; <id>TargetPage</id> &quot;); Response.Write(oxmldom.xml); %>                   </li>  Save the following code as Client.asp on ServerB, and make sure that ServerB is set with Medium or High application protection. <%@ Language=&quot;JScript&quot; %> <%   try {       var Req = Server.CreateObject(&quot;Msxml2.ServerXMLHTTP.3.0&quot;); var xmlDoc = Server.CreateObject(&quot;Msxml2.DOMDocument.3.0&quot;); xmlDoc.async = false; xmlDoc.loadXML(&quot; <id>1</id> &quot;); var URL = &quot;https://targetserver/targetpage.asp&quot;; Req.open(&quot;POST&quot;, URL, false); Req.send(xmlDoc);

Response.Write(&quot;<BR>Status = &quot; + Req.status); Response.Write(&quot;<BR>responseText = &quot; + Req.responseText); }   catch( e ) {          Response.Write( &quot;Exception!!<BR>&quot;); Response.Write(e.number + &quot;<BR>&quot;); Response.Write(e.description + &quot;<BR>&quot;); }  %>                    </li> In Microsoft Internet Explorer, run the ASP page (http://ServerB/client.asp).</li></ol>

Additional query words: SSL ServerXMLHTTP Access Permission

Keywords: kbbug KB302080

-

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

© Microsoft Corporation. All rights reserved.