FIX: "Access Denied" Error Loading Local XML File When ServerHTTPRequest Property Is True (291841)
The information in this article applies to:
This article was previously published under Q291841 SYMPTOMS
When you attempt to load a locally hosted XML file into an XMLDOMDocument object and the ServerHTTPRequest property of the document is set to True, you may receive the following error message:
Access Denied
You do not expect to be denied access to the file, because the file is hosted locally.
RESOLUTIONThis bug was corrected in XML 3.0 Service Pack 1.
To work around the problem, follow these steps:
- Run the WinHTTP Proxy Configuration Utility (Proxycfg.exe) to configure the registry for ServerHTTPRequest.
If you are not using a proxy server, use the following command from a command prompt:
If you want to specify a proxy server, use the following command:
proxycfg -d -p proxyserver "<local>" - From a command prompt, run the following command to recycle and restart Internet Information Server (IIS):
Note that the local XML document loads without error if the Application Protection setting for the virtual directory in IIS is set to Low; that is, if the application is running within the IIS process memory space.
STATUSMicrosoft 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 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:
REFERENCESFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
281142 PRB: Load Method Fails When Loading XML File Over HTTP
289481 HOWTO: Proxy Configuration Must Be Run for ServerXMLHTTP to Work
For more information, see the following Microsoft Developer Network (MSDN) Web site:
Modification Type: | Major | Last Reviewed: | 10/16/2002 |
---|
Keywords: | kbBug kbDSupport KbMSXML300SP1fix kbMSXMLnosweep KB291841 |
---|
|