Link to home
Start Free TrialLog in
Avatar of humer2000
humer2000

asked on

msxml3.dll error 80072efd - A connection with the server could not be established

hi experts

i have the following scripts that works well on my server W2k3

 ' Intruduce the url you want to visit
 GotothisURL = "http://www.mysite.com /end.asp?"& ENCRYPTED_CYPHERTEXT
 ' Create the xml object
 Set GetConnection = CreateObject("Microsoft.XMLHTTP")
 ' Conect to specified URL
 GetConnection.Open "get", GotothisURL, False
 GetConnection.Send  

 ' ResponsePage is the response we will get when visiting GotothisURL
 ResponsePage = GetConnection.responseText

But when i place it on W2K server i get this error

msxml3.dll error '80072efd'
A connection with the server could not be established
/gestionprofil/passerelle.asp, line 67


line 67 is : GetConnection.Send  

i have checked with versions of msxml are installed on this server
i found that all of them are installed
MSXML, MSXML2,
MSXML2 v2.6, v3.0, v4.0

What's the problem, what should i check too
please advise.
Avatar of apirnia
apirnia
Flag of United States of America image

Its probably because your Win2k3 has the latest MSXML installed which handles XMLHTTP.
Try downloading and installing the Latest MSXML on your WIn2k
Avatar of humer2000
humer2000

ASKER

the MSXML installed on W2K server are
MSXML
MSXML2,
MSXML2
MSXML v2.6
MSXML v3.0
MSXML v4.0
I think the latest is 5.0 but why do you have them all installed. You only need 1. Try unregistering the dll of hte other ones. Don't need to delete them.....

There might be a Conflict.....Is this the same setup as your win2k3?
i don't think so,
what i knwo is that the w2k server is highly protected (firewalls, etc...)

i will try to update the MSXML and will let you knwo
Meanewhile is their any security setting that may prevents server for accessing the web using msxml ?
Try something like this to capture the error:

<%
dim objSrvHTTP
set objSrvHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
objSrvHTTP.open "POST", "http://www.someurl.com", false
on error resume next
     objSrvHTTP.send objXmlDom
if err then
     Response.Write "Error occured " & err.Description
end if%>

and the status property

If objSrvHTTP.status <> 200 Then
   Response.Write "error with server. HTTP status code: " & objSrvHTTP.status & " Text: " & objSrvHTTP.statusText
End If
Try this first......I am almost positive that it is the version of MSXML:

' Create an xmlhttp object: WIND 2003
Set xml = Server.CreateObject("Microsoft.XMLHTTP")

' Or, for version 3.0 of XMLHTTP, use: WIND 2000
 Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
Avatar of nurbek
try this

On Error Resume Next
Dim objXmlHttp
Dim strHTML
Dim GotothisURL
GotothisURL = "http://www.mysite.com/end.asp?"& ENCRYPTED_CYPHERTEXT

Set objXmlHttp = Server.CreateObject("Msxml2.XMLHTTP")
objXmlHttp.open "GET", GotothisURL, False
objXmlHttp.send
if Err <> 0 then
Response.Write "error: " &  Err.Description
end if
      
strHTML = objXmlHttp.ResponseText
Set objXmlHttp = Nothing
This problem is NOT a question of MSXML versions.

The "Microsoft.XMLHTTP" actually comes from the very first version of MSXML that originally shipped with IE5. All versions of Windows from 2k onwards or ANY version of Windows with IE 5 or higher will support this object.

Furthermore, you'd get a "Invalid prog id" error message if you were creating an object that isn't installed on your server.

To the best of my knowledge Win2k3 comes with MSXML 3 installed by default.

I suggest you DON'T use this object because the performance is not so good. I'd recommend using "Msxml2.XMLHTTP.3.0" or "Msxml2.ServerXMLHTTP.3.0". But this won't fix your problem.

It could be that - as you suspect - Win2k3 is more locked down out of the box and preventing outgoing HTTP connections.

But it's funny - I've used default Win2k3 installations with XMLHTTP and had no problems. So maybe it's a firewall problem. Are you sure that no configuration changes have been made to your firewall??
ASKER CERTIFIED SOLUTION
Avatar of deighc
deighc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i have tried all of your suggestions on my Win2k server
i stille have the ror message

msxml3.dll error '800c0005'
The system cannot locate the resource specified.
/gestionprofil/passerelle.asp, line 68
You error basically means "can't make an outgoing HTTP connection from the server".

It seems to me the most likely cause of the problem is a firewall configuration issue. Are you 100% certain nothing has changed here?
yes there i a firewall

which port should i open ?
you have to open the port 443 and 80