简体   繁体   English

创建对象时的经典ASP Microsoft VBScript运行时错误'800a01a8'

[英]Classic ASP Microsoft VBScript runtime error '800a01a8' when Creating Object

I am running windows 8 IIS 8.5. 我正在运行Windows 8 IIS 8.5。 The following two lines of code generate a error response. 以下两行代码生成错误响应。 I would like to note that the code works just fine when ran as a .vbs script locally. 我想指出,该代码在本地作为.vbs脚本运行时效果很好。 The only thing i had to remove was the Server. 我唯一要删除的是服务器。 and just do a CreateObject which i also tried via Classic ASP/IIS to no avail. 并做一个CreateObject,我也尝试通过Classic ASP / IIS无效。

Code: 码:

Dim oXMLHTTP
Set oXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0")

Response: 响应:

Microsoft VBScript runtime error '800a01a8' Microsoft VBScript运行时错误'800a01a8'
Object required: '' 所需对象: ''

I'm not exactly which one of these steps resolved the issue as i did not pause between each one but one of them resolved it. 我不确定这些步骤中的哪一个解决了问题,因为我没有在每个步骤之间停顿,而是其中一个解决了问题。 FYI i was convinced that because those two lines worked just fine in .vbs script that it had to be something btw IIS and permissions to registry/files/folders related to the DLL involved. 仅供参考,我确信,因为这两行在.vbs脚本中工作得很好,所以它必须是IIS,并且必须具有与所涉及的DLL相关的注册表/文件/文件夹的权限。

Step 1. Searched the registry for the Object name. 步骤1.在注册表中搜索对象名称。 In this case "Msxml2.ServerXMLHTTP.6.0" 在这种情况下,“ Msxml2.ServerXMLHTTP.6.0”

Step 2. For all registry entries i took ownership of the parent registry folders so i could give read access to IIS user account(s). 步骤2.对于所有注册表项,我都拥有父注册表文件夹的所有权,因此我可以授予对IIS用户帐户的读取访问权限。

Step 3. Using the physical file paths for the the DLL found when executing step #1. 步骤3.将物理文件路径用于执行步骤#1时发现的DLL。 I went and made sure the files/folders had read/execute permission for the IIS user account(s). 我去确保文件/文件夹具有IIS用户帐户的读取/执行权限。

Step 4. Registered the DLL at the command line for good measure. 第4步。在命令行上注册DLL是一种很好的方法。

Step 5. Rebooted because restarting IIS didn't seem to do it. 步骤5.重新启动,因为重新启动IIS似乎没有执行此操作。
* After reboot problem resolved and i was able to continue to add code and use the object effectively* *重新启动问题解决后,我能够继续添加代码并有效使用该对象*

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM