BUG: "Access is denied" Error Message When Making HTTPS Requests with ServerXMLHTTP

Article translations Article translations
Article ID: 302080
Expand all | Collapse all

On This Page

Symptoms

When you make HTTPS requests between Web servers by using the ServerXMLHTTP request object, you may receive the following error message:
"Access is denied" -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: For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
308480How to obtain the latest Microsoft XML 3.0 service pack

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.
  1. Install a valid SSL server certificate on ServerA.
  2. On ServerA, save the following code as Targetpage.asp:
    <%@ Language="JScript" %>
    <%
    Response.Buffer=true ;
    
    
    var oxmldom = Server.CreateObject("MSXML2.DOMDocument.3.0");
    oxmldom.async=false;
    
    oxmldom.loadXML("<msg><id>TargetPage</id></msg>");
    Response.Write(oxmldom.xml);
    %>
    					
  3. Save the following code as Client.asp on ServerB, and make sure that ServerB is set with Medium or High application protection.
    <%@ Language="JScript" %>
    <%
    	try
    	{
    		var Req = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0");
    		var xmlDoc = Server.CreateObject("Msxml2.DOMDocument.3.0");
    		
    		xmlDoc.async = false;
    		xmlDoc.loadXML("<msg><id>1</id></msg>");
    		
    		var URL = "https://targetserver/targetpage.asp";
    		Req.open("POST", URL, false);
    		Req.send(xmlDoc);
    
    		Response.Write("<BR>Status = " + Req.status);
    		Response.Write("<BR>responseText = " + Req.responseText);
    	}
    	catch( e )
    	{	
    		Response.Write( "Exception!!<BR>");
    		Response.Write(e.number + "<BR>");
    		Response.Write(e.description + "<BR>");
    	}	
    %>
    					
  4. In Microsoft Internet Explorer, run the ASP page (http://ServerB/client.asp).

Properties

Article ID: 302080 - Last Review: June 22, 2014 - Revision: 2.0
Keywords: 
kbbug KB302080

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com