English 中文(简体)
与服务器的连接被异常终止
原标题:the connection with the server was terminated abnormally xmlhttp

我在同一个服务器(不同网站)上拥有这一页码测试。 当时正试图实施该法典。

sUrl = "http://chat.xxxxx.com/UCWebServices/Chat.asmx/GetChatQueueByAddress?queueAddress=SALESCHAT"

result = HTTPPost(sUrl)

response.Write result

Function HTTPPost(sUrl)
  set oHTTP = CreateObject("Msxml2.ServerXMLHTTP")
  oHTTP.open "GET", sUrl,false
  oHTTP.send <-- it fails here <-- it fails here <-- it fails here <--
  if oHTTP.Status = 200 Then
     HTTPPost oHTTP.responseText
  End if
 End Function
%>

i 得出以下错误:

msxml3.dll差错 80072efe

与服务器的连接被异常终止

i og开这个问题的思维,可能有些小 b,可以轻易解决,但会遇到一些问题。 使之发挥作用并不容易。

if we run the same page from anywhere else, then it works.

任何想法?

最佳回答

该错误代码为ERROR_INTERNET_CONNECTION_ABORTED。 最常见的原因是防火墙或防病毒干扰了该连接,这是引出连接数据的代理。 我也可以通过一个名称问题——例如,如果东道国的国名决心达到127.0.0.1,那么网络服务器只受公共IP地址的约束。

问题回答

另一种可能性是,服务器在很接近尾声时,可以根据浏览器机载体过滤(和丢弃)申请,以防止方案报废。

What happens when you just request that URL in a regular browser?

Some servers need a content-length header set for an HTTP POST to function properly. In our case (using serverXMLHttp) this was needed:

    xmlhttp.Open "POST", URL , false
    xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    xmlhttp.setRequestHeader "Content-Length", Len(postdata)

(由于在谷歌发布这一信息的第一个结果而使旧的透镜上台)

我只谈这个问题。 它指出,我是一位空洞的人:

myString = FunctionThatWasReturningEmptyString()
set oHTTP = CreateObject("Msxml2.ServerXMLHTTP")
oHTTP.open "GET", sUrl, false
oHTTP.send myString

Once I fixed the function to return an empty XML set instead of an empty string, my error went away

当我发现这一错误时,事件记录仪表示,湿重3.exe(IIS应用联营)已经坠毁。

我与视觉演播室一起打开了记忆堆放场,上面提到了事件观察家,而“接收信息”的讯息是“已经用完了它的钟子”。

它发现,该法典有一条StackOverflowException,正在冲撞该套套池。





相关问题
IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

ASP.net web services

I am using a web service which sets the Thread.CurrentPrincipal object while logging in and soon later when another webmethod of the same web service accesses Thread.CurrentPrincipal, its different/...

Unity Container Disposing and XML Web Service

I am registering some wrapers over un-managed objects in container. How can I dispose of them at the end of the container s lifetime? Please bear in mind I have an XML Web service.

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

热门标签