MSXML2.ServerXMLHTTP的访问被拒绝错误 [英] Access denied error with MSXML2.ServerXMLHTTP
问题描述
我收到间歇性的"msxml3.dll错误'80070005'访问被拒绝."错误.该对象始终回传到同一域.我不太清楚为什么有时候会起作用,为什么有时候会失败.这是经典的ASP-VBScript
I'm receiving an intermittent "msxml3.dll error '80070005' Access is denied." error. The object always posts back to the same domain. I don't quite know why it works sometimes and why it fails other times. This is Classic ASP - VBScript
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "POST", "http://xxxx.com/GetCacheValue.aspx", false
xmlhttp.send ""
strCaptchaText = xmlhttp.responseText
set xmlhttp = nothing
推荐答案
以下是我从Google搜索结果中摘录的内容:
Here's something I snipped from a Google search result:
使用ServerXmlHttp对象发布数据时,安全性得到加强
Security tightened when posting data using the ServerXmlHttp object
MSXML 4.0 SP2 ServerXmlHttp对象的实现中的安全性已得到增强,可以检查Internet Explorer安全策略设置以提交未加密的表单数据.
Security in the implementation of the MSXML 4.0 SP2 ServerXmlHttp object has been enhanced to check the Internet Explorer security policy setting for submitting non-encrypted form data.
当尝试使用ServerXmlHttp对象发布表单数据时,提交未加密的表单数据"选项的安全策略设置为禁用"或提示"将导致访问被拒绝"错误消息.
A security policy setting of "Disable" or "Prompt" for the "Submit nonencrypted form data" option will result in an "Access Denied" error message when attempting to post form data using the ServerXmlHttp object.
此更改可能会破坏使用Internet Explorer安全策略设置(用于提交非XML格式的对象)时,使用ServerXmlHttp对象的早期版本(例如MSXML 3.0和MSXML 4.0的先前发行版本)发布表单数据的现有代码.加密的表单数据未启用.
This is a change that can potentially break existing code that uses earlier versions of the ServerXmlHttp object (such as prior released versions of both MSXML 3.0 and MSXML 4.0) to post form data when the Internet Explorer security policy setting for submitting non-encrypted form data is not enabled.
这篇关于MSXML2.ServerXMLHTTP的访问被拒绝错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!