XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old August 19th, 2003, 02:54 PM
pfizur pfizur is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 6 pfizur User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to pfizur
Angry msxml4.dll error 80070005 Access denied

Hi all

I've tried the Microsoft news groups, no help. Hoping someone here can help me out. Our XML guy has written some code. The is a line of code as follows:

oXMLServerHTTP.Send( strXML )

When anyone tried to load this document they get the following error:

msxml4.dll error '80070005'

Access is denied.

It's pretty damn beat. Anyone have any idea why this would be happening?

The offending document looks like this:

<%@LANGUAGE="VBSCRIPT" %>
<%Option Explicit %>
<!-- #include file="../_egames.inc" -->
<!-- #include file="./_shipping.inc" -->

<%'*** Code sample below will attempt to retrieve shipping quote from UPSonline
'*** The package weighs 4.0 lbs.
'*** The package will be shipped from ZIP code 17603 (Lancaster) to 19138 (Philadelphia)


Dim strSZip, strSCity, strSCountry, fWeightTotal
strSZip = "19138"
strSCity = "Philadelphia"
strSCountry = "US"
fWeightTotal= 4.0


Call ShippingOptionsPullDown( strSZip, strSCity, strSCountry, fWeightTotal ) %>

Reply With Quote
  #2  
Old August 19th, 2003, 06:01 PM
mulligh mulligh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 19 mulligh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Reply With Quote
  #3  
Old October 14th, 2003, 12:21 PM
Chakaal Chakaal is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: San Antonio, TX
Posts: 1 Chakaal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You must have MSXML4 SP2 installed. Read the release notes; toward the end it explains your problem (see also below). Note that I haven't figured out how to fix it on Win2K, but the "Resultant Set of Policy Wizard" (MMC Snapin) appears to be the solution for XP and 2K3.

<exerpt>
Security tightened when posting data using the ServerXmlHttp object
Security in the implementation of the MSXML 4.0 SP2 ServerXmlHttp object has been enhanced to check the Internet Explorer security policy setting for submitting non-encrypted form data. A security policy setting of "Disable" or "Prompt" for the "Submit nonencrypted form data" option will result in an "Access Denied" error message when attempting to post form data using the ServerXmlHttp object. This is a change that can potentially break existing code that uses earlier versions of the ServerXmlHttp object (such as prior released versions of both MSXML 3.0 and MSXML 4.0) to post form data when the Internet Explorer security policy setting for submitting non-encrypted form data is not enabled.
</exerpt>

Reply With Quote
  #4  
Old November 14th, 2003, 04:14 AM
zootfroot zootfroot is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 1 zootfroot User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi - I am having the same problem. Haven't solved it yet because I have followed the instructions and am still getting the same "Access Denied" message - even when posting to an HTTPS page.

Anyway, I think the following info might help you to implement the advice from the post above in Win2K (which doesn't seem to have the "Resultant Set of Policy" wizard.

1.From the Start menu, click Run, type "mmc" and then press ENTER.
2. From the File menu, select Add/Remove Snap-In.
3. In Add/Remove Snap-In, click Add.
4. Add the "Group Policy" snap-in to the Console Root.
5. Select Local Computer Policy -> User Configuration -> Windows Settings -> Internet Explorer Maintenance -> Security
6. Click on "Security Zones and Content Ratings"
7. For "Security Zones and Privacy", select the "Import..." radio button and click "Modify Settings"
8. Set "Submit nonencrypted form data" to "Enable"

Reply With Quote
  #5  
Old December 12th, 2003, 04:17 AM
javaro javaro is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Belgium
Posts: 1 javaro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking msxml4.dll error 80070005 Access denied

I have for the mment the same problem ;
All hints found does not give results ...

But I save my file to a Floppy-Diskette ; which has no security and the copies on the harddisk when needed.

'OPEN FILE
Set xml_data = Server.CreateObject("Microsoft.XMLDOM")
' with msxml3.dll
Set xml_data = Server.CreateObject("Msxml2.DOMDocument.4.0")
' with msxml4.dll
'.. instructions to modify xml file below ..
' ..
' Write file to diskette
xml_data.save("a:file_to_save.xml")


Stupid ... but that's me ...

Enjoy,
Jan

Reply With Quote
  #6  
Old April 23rd, 2004, 06:45 AM
jjstewar jjstewar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 jjstewar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
For all of those who can't use the mmc, this registry hack will work on Win2k, XP and Win2k3.

Set these values in the registry to allow for non-encrypted data to be posted.

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Security_HKLM_only (Dword value) = 1
You may have to create CurrentVersion and Internet Settings folders

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1601 (Dword value) = 0

This will allow you to use ServerXMLHTTP post with msxml4 sp2.

hope this helps

Reply With Quote
  #7  
Old May 6th, 2004, 01:48 PM
drahmel drahmel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 drahmel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking It worked- Thanks

Thanks for this answer. This problem has been haunting me for days. When I pulled up the Security Zones and Content Ratings as described in the MSXML 4.0 SP2 Release Notes, all of the options were greyed out and I had no way to change them.

Thanks again,
drahmel

Quote:
Originally Posted by jjstewar
For all of those who can't use the mmc, this registry hack will work on Win2k, XP and Win2k3.

Set these values in the registry to allow for non-encrypted data to be posted.

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Security_HKLM_only (Dword value) = 1
You may have to create CurrentVersion and Internet Settings folders

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1601 (Dword value) = 0

This will allow you to use ServerXMLHTTP post with msxml4 sp2.

hope this helps

Reply With Quote
  #8  
Old March 16th, 2006, 10:56 AM
danp129 danp129 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 3 danp129 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 19 m 56 sec
Reputation Power: 0
Quote:
Originally Posted by jjstewar
For all of those who can't use the mmc, this registry hack will work on Win2k, XP and Win2k3.

Set these values in the registry to allow for non-encrypted data to be posted.

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Security_HKLM_only (Dword value) = 1
You may have to create CurrentVersion and Internet Settings folders

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1601 (Dword value) = 0

This will allow you to use ServerXMLHTTP post with msxml4 sp2.

hope this helps


Had to use this before and again just now (thank God I found this again w/o too much trouble). I saved it into a .reg file for when I need it again

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]
"1601"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\CurrentVersion\Internet Settings]
"Security_HKLM_only"=dword:00000001

Reply With Quote
  #9  
Old December 12th, 2007, 03:49 AM
paulBCT paulBCT is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 1 paulBCT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 27 sec
Reputation Power: 0
Quote:
Originally Posted by jjstewar
For all of those who can't use the mmc, this registry hack will work on Win2k, XP and Win2k3.
...
This will allow you to use ServerXMLHTTP post with msxml4 sp2.

hope this helps


It certainly did help

Thanks very much for making the effort to post this fix. I have spent hours trying to figure out what the problem is.
We had to back out of a new server implementation last weekend because of this. Server was running Windows 2003 R2 SP2 and IIS 6 with all the latest patches.

I can't post the MS article about this cos I'm a new forum user but the item ID is 820882 and the title is Conformance and Security Changes in MSXML 4.0 SP2 (the link someone provided earlier no longer works).

The article provides the instructions on how to load the local Internet security policy and change the Submit nonencrypted form data setting but then points out that on a computer that is running Windows Server 2003 in Internet Information Services (IIS) 6.0 mode, changing this setting has no affect [sic]!

MS don't mention your registry hack and instead suggest these 3 workarounds:

Method 1: Run the specified Web sites, or virtual directories in a separate IIS pool ,and then create a user that the pool will run under.
Method 2: Create a new DLL, write code to do ServerXMLHTTP calls, and then host the DLL in COM+ under a new user.
Method 3: Use WinHTTP by changing the Prog ID from MSXML2.ServerXMLHTTP.4.0 to WinHTTP.WinHTTPRequest.5.1.

Reply With Quote
  #10  
Old January 29th, 2008, 11:59 AM
wikirex wikirex is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 1 wikirex User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 57 sec
Reputation Power: 0
Talking End this problem!

Here comes a good news!!
This have worked on this problem for a whole day and almost drove me nuts!! Thanks God I found the solution finally and here are some conclusions of mine:

1.Use "GET" method only
2.The server where you get XML document from must be on the internet without any authorization.

Hope this experience helps you!

Reply With Quote
  #11  
Old April 30th, 2008, 06:25 PM
z0iid z0iid is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 1 z0iid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 54 sec
Reputation Power: 0
another solution

By clearing the flag in Internet Explorer for that internet zone that prevents this POST (Access data sources across domains), it works.

1. In Internet Explorer, click Internet Options on the Tools menu.
2. On the Security tab, click Trusted sites, and then click Sites.
3. Add your site to the zone.
4. Click Custom Level.
5. Under Miscellaneous/Access data sources across domains, click Enable.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > msxml4.dll error 80070005 Access denied


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed<