This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft XML > March 2004 > Method '~' of object '~' failed' on PUT using xmlHTTP.send
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Method '~' of object '~' failed' on PUT using xmlHTTP.send
|
|
| John Covert 2004-03-19, 8:29 pm |
| Code:
Dim xmlHTTP As New MSXML2.xmlHTTP
Dim gXMLDoc As New DOMDocument ' MS XML 3.0
xmlHTTP.Open "PUT", http://www.someurl.com/uploads/" & parmDestFileName,
False
gXMLDoc.Load parmUploadFileName
xmlHTTP.setRequestHeader "Content-type", "text/xml"
xmlHTTP.send gXMLDoc
The error generated is Method '~' of object '~' failed' and it occurs on
that last statement.
The code, of course, works on hundreds of machines. It fails regularly on
only two or three. These machines are hooked to a network that, as the user
admin says:
"I think I know the problem. We have dual T-1 lines here and they do a sort
of load swapping function. The download may be swapping from one T-1 to the
other during the download. This of course shows up on your end as a
different IP address... We have the same problem with remote connections to
our clients using Remote Desktop Client. We have to physically assign IP
addresses of clients that we access regularly to use only one of the T-1
lines and not load swap. If we are in a terminal session, and the load
swapping occurs, it disconnects us from the session."
Might anyone have a suggestion?
Regards all,
John Covert
| |
| Ian Boyd 2004-03-21, 2:29 pm |
| i don't have any clue. But i can suggest using XmlHttpServer object, instead
of XmlHttp object.
Both have the same methods and properties; and are for all intents and
purposes equivalent.
Except that XmlHttpServer version works, whereas XmlHttp doesn't work.
At least that was my experience; a simple switch from
Dim xmlHTTP As New MSXML2.xmlHTTP
to
Dim xmlHTTP As New xmlHTTPServer
Either that, or maybe because XmlHttp requires IE5, and those machines don't
have it.
"John Covert" <jxcovert@comcast.net> wrote in message
news:uwim51gDEHA.2932@tk2msftngp13.phx.gbl...
> Code:
>
> Dim xmlHTTP As New MSXML2.xmlHTTP
> Dim gXMLDoc As New DOMDocument ' MS XML 3.0
>
> xmlHTTP.Open "PUT", http://www.someurl.com/uploads/" &
parmDestFileName,
> False
>
> gXMLDoc.Load parmUploadFileName
>
> xmlHTTP.setRequestHeader "Content-type", "text/xml"
>
> xmlHTTP.send gXMLDoc
>
> The error generated is Method '~' of object '~' failed' and it occurs on
> that last statement.
>
> The code, of course, works on hundreds of machines. It fails regularly on
> only two or three. These machines are hooked to a network that, as the
user
> admin says:
>
> "I think I know the problem. We have dual T-1 lines here and they do a
sort
> of load swapping function. The download may be swapping from one T-1 to
the
> other during the download. This of course shows up on your end as a
> different IP address... We have the same problem with remote connections
to
> our clients using Remote Desktop Client. We have to physically assign IP
> addresses of clients that we access regularly to use only one of the T-1
> lines and not load swap. If we are in a terminal session, and the load
> swapping occurs, it disconnects us from the session."
>
> Might anyone have a suggestion?
>
> Regards all,
>
> John Covert
>
>
| |
| John Covert 2004-03-22, 2:41 pm |
| Ian,
You said: "Except that XmlHttpServer version works, whereas XmlHttp doesn't
work."
Funny. but that's not mentioned in the documentation <grin>
You mean "ServerXMLHTTP", right?
Thanks for the reply.
John
"Ian Boyd" <ian.msnews010@avatopia.com> wrote in message
news:ewp3z12DEHA.2600@TK2MSFTNGP09.phx.gbl...
> i don't have any clue. But i can suggest using XmlHttpServer object,
instead
> of XmlHttp object.
>
> Both have the same methods and properties; and are for all intents and
> purposes equivalent.
>
> Except that XmlHttpServer version works, whereas XmlHttp doesn't work.
>
> At least that was my experience; a simple switch from
>
> Dim xmlHTTP As New MSXML2.xmlHTTP
> to
> Dim xmlHTTP As New xmlHTTPServer
>
> Either that, or maybe because XmlHttp requires IE5, and those machines
don't
> have it.
>
>
>
>
>
> "John Covert" <jxcovert@comcast.net> wrote in message
> news:uwim51gDEHA.2932@tk2msftngp13.phx.gbl...
> parmDestFileName,
on[color=darkred]
> user
> sort
> the
> to
IP[color=darkred]
>
>
| |
| Ian Boyd 2004-03-30, 10:13 pm |
| Oh, my bad. Sorry. That's the difference between IXmlHttpRequest, and
IXmlHttpServerRequest.
i got the four confused.
http://groups.google.com/groups?hl=...FTNGP10.phx.gbl
"John Covert" <jxcovert@comcast.net> wrote in message
news:%23RurUADEEHA.2652@TK2MSFTNGP10.phx.gbl...
> Ian,
>
> You said: "Except that XmlHttpServer version works, whereas XmlHttp
doesn't
> work."
>
> Funny. but that's not mentioned in the documentation <grin>
>
> You mean "ServerXMLHTTP", right?
>
> Thanks for the reply.
>
> John
>
>
> "Ian Boyd" <ian.msnews010@avatopia.com> wrote in message
> news:ewp3z12DEHA.2600@TK2MSFTNGP09.phx.gbl...
> instead
> don't
on[color=darkred]
regularly[color=darkred]
> on
the[color=darkred]
a[color=darkred]
to[color=darkred]
connections[color=darkred]
> IP
T-1[color=darkred]
load[color=darkred]
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|