ASP程序在生成静态HTML页面时提示“ msxml3.dll 错误 '80070005' 拒绝访问。”代码如下:
Response.Write("<a href=""" & FilePath & """ target=""_blank"">" & FilePath & " --> Ok</a><br>")
FilePath = Server.MapPath(FilePath)
Set objXmlHttp=Server.createObject("Microsoft." & "XMLHTTP")
objXmlHttp.open "GET",FromURL,false
objXmlHttp.send()
binFileData=objXmlHttp.responseBody
Set objXmlHttp = Nothing
可能是打开的页面有跳转的原因,一般是程序写的问题,解决办法是用
MSXML2.ServerXMLHTTP
替换掉
Microsoft.XMLHTTP
即可解决。
替换后的代码为:
Set objXmlHttp=Server.createObject("MSXML2." & "ServerXMLHTTP")
若转载请注明出处: Spirit's Home
本文地址: http://www.7788sky.cn/post/msxml3.dll_80070005.html
1 Response to “msxml3.dll 错误 '80070005' 拒绝访问”
By 汤博客杂志站 on 2009-9-8 14:12:16| http://www.tangboke.cn
好久没来你博客看了。今天到访,文章不错。。望回访。:》