如何解决 msxml3.dll 错误 '800c0005' 系统未找到指定的资源?
下面这段代码本地电脑运行正常,但我上传到虚拟主机上却出现如下错误,我能力有限,只有到CSDN来请高手帮忙了
如下错误
msxml3.dll 错误 '800c0005'
系统未找到指定的资源。
-------------------------------------------------------------------------------------
<%'定义xmlhttp
function GetXmlText(Url)
dim GetXmlHttp
set GetXmlHttp=server.Createobject("Microsoft.XMLHTTP")
GetXmlHttp.open "Get",url,false,"",""
GetXmlHttp.Send
'GetXmlText=GetXmlHttp.Responsetext
GetXmlText=GetXmlHttp.ResponseBody
set GetXmlHttp=nothing
end function
''''转换为字符
Function BytesToBstr(body,Cset)
dim objstream
set objstream = Server.CreateObject("adodb.stream")
'set objstream=Server.CreateObject("Adodb." & "Stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
''保存文件
Sub SaveToFile(strBody,File)
Dim objStream
Set objStream = Server.CreateObject("ADODB.Stream")
With objStream
.Type = 2
.Open
.Charset = "GB2312"
.Position = objStream.Size
.WriteText = strBody
.SaveToFile Server.MapPath(File),2
.Close
End With
Set objStream = Nothing
End Sub
%>
<%
dim ce
ce=BytesToBstr(GetXmlText("http://www.life80.cn/Ft.ASP"),"GB2312")
'response.write ce
'response.end
call SaveToFile(ce,"ft.htm")
%>
-------------------------------------------------------------------------------------------------------------