Access Error with msxml4.dll

J

Jason Burr

I keep getting an Access is denied error using msxml4.dll I have seen a
number of posts on other sites mention it and say they fixed it but not one
says how they did.

Here is the code that I am trying to execute (in jscript).

var objSrvHTTP;
var objXMLSend;
var objXMLReceive;
objSrvHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0");
objXMLSend = Server.CreateObject("MSXML2.DOMDocument.4.0");
objXMLReceive = Server.CreateObject("MSXML2.DOMDocument.4.0");

objXMLSend.async = false;
objXMLSend.loadXML (strXMLOUT);

objSrvHTTP.open ("POST",strURL,false);
objSrvHTTP.setRequestHeader("application","x-www-form-urlencoded");
objSrvHTTP.send (objXMLSend);
objXMLReceive = objSrvHTTP.responseXML;
Response.ContentType = "text/xml";
Response.Write (objXMLReceive.xml);

I have had this with any site that I have tried to get a response from so I
am fairly sure it is the new version of msxml since my other 2.0 versions
still work.

On one I can get the content back directly through the browser but not with
this call.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
ClayE7480

Latest Threads

Top