接近疯狂了。困扰一周了,心力憔悴。关于xmlhttp

roymans 2004-06-07 01:15:38
这样的情况。我做动态转静态,使用了xmlhttp来读取信息,代码如下:

private sub getdata()

Dim objXMLHTTP, xml,lresolveTimeout,lconnectTimeout,lsendTimeout,lreceiveTimeout

lresolveTimeout = 5000 ' 解析DNS名字的超时时间,5秒
lconnectTimeout = 5000 ' 建立Winsock连接的超时时间,5秒
lsendTimeout = 5000 ' 发送数据的超时时间,5秒
lreceiveTimeout = 5000 ' 接收response的超时时间,5秒

Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")

xml.setTimeouts lresolveTimeout,lconnectTimeout,lsendTimeout,lreceiveTimeout

xml.Open "get",http,false
' xml.setRequestHeader "CONTENT-TYPE","text/html"
' xml.setRequestHeader "Charset", "gb2312"
response.write http
xml.Send() *******************************68行**********
strContent=streamtochar(xml.responseBody)
Set xml = Nothing


end sub


在本地机器上正常。可是在服务器上就不行了,服务器环境 windows2000(sp4)+iis5+sql2000(sp3)+MSXML 4.0 SP2 +以前安过偌顿防火墙和瑞星防火墙+现在还有瑞星杀毒软件

出现错误如下:


msxml3.dll 错误 '80004005'

未指定的错误

/info_count/transhtml.asp,行68

68行即加星号部分。



上面的代码我几乎用排列组合全部换过参数,还是不行。


我快崩溃了,两个星期的工作全在这一块卡上了,服务器几乎相当于当机了!!!!!!!


盼高人指教,大恩大德啊! 分不够,再开贴给!!!
...全文
676 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
fayeflash 2004-06-29
  • 打赏
  • 举报
回复
Goodxstudio(源清)
我觉得Open的时候其实没有真正的去打开,只是加载了一些东西,只有Send的时候才去连接。

我觉得楼上的说的是对的,可以检查代理先。
我在CSDN上找到些东西,或许对你有帮助
0x80004005 Unspecified error ---------就是你的吧?
0x8000FFFF Unexpected error
0x80070008 Out of memory
0x8007000E Out of memory
0x80072ee1 Cannot create any more ServerXMLHTTP objects (cannot exceed 5460 concurrent objects per process)
0x80072ee2 The operation timed out
0x80072ee4 internal error
0x80072ee5 The URL is invalid
0x80072ee7 The server name or address could not be resolved
0x80072eee incorrect password
0x80072eef authentication failure (credentials not accepted)
0x80072efd A connection with the server could not be established
0x80072efe connection aborted
0x80072eff connection reset
0x80072f05 The date in the certificate is invalid or has expired
0x80072f06 The host name in the certificate is invalid or does not match
0x80072f07 A redirect request will change a non-secure to a secure connection
0x80072f08 A redirect request will change a secure to a non-secure connection
0x80072f0c A certificate is required to complete client authentication
0x80072f0d The certificate authority is invalid or incorrect
0x80072f0e Client authentication has not been correctly installed
0x80072f76 The requested header was not found
0x80072f78 The server returned an invalid or unrecognized response
0x80072f7a The request for a HTTP header is invalid
0x80072f7c The HTTP redirect request failed
0x80072f7d An error occurred in the secure channel support
0x80072f80 The HTTP request was not redirected
0x80072f82 A cookie from the server has been declined acceptance
0x80072f88 The HTTP redirect request must be confirmed by the user
0x80072f89 The server certificate was invalid
saucer 2004-06-29
  • 打赏
  • 举报
回复
You may need to run the Proxycfg tool for ServerXMLHTTP to work
http://support.microsoft.com/default.aspx?scid=kb;EN-US;289481

BUG: "WinHTTP5.dll Could Not Be Found" Error Message When You Run Proxycfg.exe after You Install MSXML 4.0 SP2
http://support.microsoft.com/default.aspx?scid=kb;en-us;829735

Frequently Asked Questions about ServerXMLHTTP
http://support.microsoft.com/default.aspx?scid=KB;en-us;q290761
Iamfish 2004-06-29
  • 打赏
  • 举报
回复
有可能是没有权限!

还有诺顿有阻止某些脚本的功能.
孟子E章 2004-06-07
  • 打赏
  • 举报
回复
try:

Set xml = Server.CreateObject("MSXML2.XMLHTTP")
xml.Open "get",http,false
xml.Send()
strContent=streamtochar(xml.responseBody)
Set xml = Nothing
Goodxstudio 2004-06-07
  • 打赏
  • 举报
回复
试试xml.* 的其它属性或方法,看有没有效,否则一定是他了
Goodxstudio 2004-06-07
  • 打赏
  • 举报
回复
xml.Open "get",http,false
对应该是这里,可能XML根本就没打开
Goodxstudio 2004-06-07
  • 打赏
  • 举报
回复
看XML SDK看看80004005什么错误先吧
  • 打赏
  • 举报
回复
你那xml.Open "get",http,false中的http是变量还是协议或是常量呀?
如果是变量建议换个自己的名称吧:)

还有,本地机指的什么东东呀?系统/IIS/SQL是啥?是调用服务器上的,还是本地就有这些服务呀?
kennyn 2004-06-07
  • 打赏
  • 举报
回复
我也是在搞这个东东,唉,快晕了
roymans 2004-06-07
  • 打赏
  • 举报
回复
谢各位了,也帮顶下

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧