如何解决“指定资源的下载失败";错误? [英] how to solve "The download of the specified resource has failed" error?
本文介绍了如何解决“指定资源的下载失败";错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<%
set xd= server.createobject("msxml2.domdocument.6.0")
xd.async = false
xd.load("http://example.com/test.xml")
set errorlist= xd.selectnodes("/XMLResponse/ServiceList/")
if errorlist.length <> 0 then
response.write "FILE EXIST"
else
Response.Write xd.parseError.reason
end if
%>
当我运行上述代码时,出现错误指定资源的下载失败"
when i run above code i getting error "The download of the specified resource has failed"
如何解决这个问题?
推荐答案
我遇到了同样的问题,并认为这是访问另一个域的RSS feed的权限错误(可能是跨域的?).我能够在浏览器中提取RSS feed的内容.我对服务器的访问受到限制,并且它是高度安全的,因此我认为这是一些安全设置.
I had the same problem and figured it was a permissions error (cross-domain maybe?) with accessing an RSS feed from another domain. I was able to pull up the contents of the RSS feed in my browser just fine. I have limited access to the server and it is highly secured, so I figured it was some security setting.
我发现这种替代方法使我可以解决此问题:
I found that this alternate approach allowed me to work around this:
Set xHttp = CreateObject("MSXML2.XMLHTTP")
xHttp.open "GET", "http://example.com/test.xml", False
xHttp.send
Set xd = Server.CreateObject("Microsoft.XMLDOM")
xd.loadxml(xHttp.responseText)
[rest of your code]
这篇关于如何解决“指定资源的下载失败";错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文