Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP XML
| Search | Today's Posts | Mark Forums Read
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 6th, 2006, 10:20 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Permission Denied error on xmlhttp.open call...

I'm using the XMLHTTP object to send XML data to a remote site and then retrieve an XML response.
Things were working okay locally, but as soon as I plug in the remote URL in on the xmlhttp.open call, I get a Permission Denied error. I am using ASP and Javascript and developing on IE.

I see this error posted all over the internet, but can't seem to pinpoint a solution or get the assistance I need.

Does anyone have experience in this area?
Thanks.
MelissaM
  #2 (permalink)  
Old June 6th, 2006, 11:17 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Disregard this -- I was able to get this to work with my client side/server side scripting ...

Thanks!
  #3 (permalink)  
Old July 27th, 2007, 04:55 AM
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How did you send data from one web site to other using xmlhttp,
I am getting permission denied error


  #4 (permalink)  
Old October 9th, 2007, 02:43 AM
Authorized User
 
Join Date: Oct 2007
Location: Everett, WA, USA.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There's a bug in MSXML 4.0 and 5.0 (not sure about 3.0)

I'm sorry I don't have the details. It was over a month ago that I discovered it and had to work-around it.

You are better off using 3.0 or ServerXMLHTTP object instead.

I did some testing myself and here's what i found...

Code:
Set objXML = Server.CreateObject("Msxml2.DOMDocument.5.0")
permission denied

Code:
Set objXML = Server.CreateObject("Msxml2.DOMDocument.4.0")
permission denied

Code:
Set objXML = Server.CreateObject("Msxml2.DOMDocument.3.0")
worked! However, could not use some new XMLDOM features I needed

Code:
Set objXML = Server.CreateObject("Microsoft.XMLDOM")
worked! However, could not use some new XMLDOM features I needed

Code:
Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
worked!


I'm not sure if I did it the best way, but using the code below fixed the problem for me.


Code:
Dim objXMLHTTP, sResponseText
Set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")
objXMLHTTP.open "GET", sWebSiteURL, false
objXMLHTTP.send 
sResponseText = objXMLHTTP.responseText 
set objXMLHTTP = nothing

Dim objXML
Set objXML = Server.CreateObject("Msxml2.DOMDocument.5.0")
With objXML
    .async = False 
    .validateOnParse = False 
    .preserveWhiteSpace = False
    .resolveExternals = False 
End With
objXML.LoadXML(sResponseText)

'... use objXML object here ...

Set objXML = nothing



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting a permission denied error in IE 7 disto Javascript 1 September 20th, 2007 08:26 AM
Permission Denied Error interrupt Javascript How-To 6 October 15th, 2004 05:26 AM
IE - Runtime error - Permission Denied bstone VB How-To 2 September 11th, 2004 02:21 AM
Permission Denied Error in VBA ebalch24 Access VBA 3 April 12th, 2004 06:51 PM
Error 70: Permission denied junglem@n VB How-To 2 April 3rd, 2004 03:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.