Microsoft Knowledge Base Email Alertz

KBAlertz.com: When you make HTTPS requests between Web servers by using the

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]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

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




Article ID: 302080 - Last Review: October 16, 2002 - Revision: 1.0

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

This article was previously published under Q302080

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  (http://kbalertz.com/Feedback.aspx?kbNumber=301429/EN-US/ ) 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 (http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/MSDN-FILES/027/001/772/msdncompositedoc.xml)

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

APPLIES TO
  • Microsoft XML Parser 3.0
  • Microsoft XML Parser 3.0 Service Pack 1
Keywords: 
kbbug KB302080
       

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

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please