Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP XML
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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
Reply With Quote
  #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!
Reply With Quote
  #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


Reply With Quote
  #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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.