msxml.dll 80072ee2
具體原因是採集本地檔案引起,詳解看:http://support.microsoft.com/kb/316451/zh-cn
我原本是32位2003系統(標準版),採集時用MSXML2.XMLHTTP.4.0,一頁9秒左右。改為MSXML2.ServerXMLHTTP後為7秒左右。
將系統改為64位2008系統時(R2企業版),用MSXML2.XMLHTTP.4.0出錯,用MSXML2.ServerXMLHTTP時70秒左右。
後來用代碼測試:
<%On Error Resume Next
Response.Write "<h3>伺服器XmlHttp組件版本支援情況:</h3>"
oxml=array("Msxml2.ServerXMLHTTP.6.0","Msxml2.ServerXMLHTTP.5.0","Msxml2.ServerXMLHTTP.4.0","Msxml2.ServerXMLHTTP.3.0","Msxml2.ServerXMLHTTP","Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP")
for i=0 to ubound(oxml)
Set getxmlhttp = Server.CreateObject(oxml(i))
If Err Then
Err.Clear
Response.Write "不支援"&oxml(i)&"<br/>"
else
Response.Write "支援"&oxml(i)&"<br/>"
end if
next%>
發現64位的2008不支援xmlHttp4.0,改成xmlHttp.6.0後運行8秒左右。但是用serverXmlHttp.6.0時,70多秒。
為什麼在2003下serverXmlHttp比XmlHttp快,而在2008下serverXmlHttp比XmlHttp慢呢。(主要是慢的太多,相差10倍左右)