简体   繁体   English

IIS7上的ASP经典无法创建COM对象

[英]ASP Classic on IIS7 Cannot create COM Object

I am getting permission denied errors when trying to create a com object in asp. 尝试在asp中创建com对象时,出现权限被拒绝错误。 The com object is a VB6 dll that has been registered. com对象是已注册的VB6 dll。 Procmon does not show any permission errors. Procmon不显示任何权限错误。 I have granted permissions to the folder that contains the dll to the AppPool user and well as the authenticating user (IUSR). 我已将包含dll的文件夹的权限授予了AppPool用户以及身份验证用户(IUSR)。 I noticed that there are a few people experiencing this problem with no definite solution. 我注意到有些人遇到了这个问题,没有确定的解决方案。 Please help!! 请帮忙!!

First thing you should check is that the permissions you have assigned to the folder have cascaded to the dll. 您应该检查的第一件事是分配给该文件夹的权限已级联到dll。 I've seen a few cases like this where the dll had its own independent ACL rather than inheriting anything from its folder. 我已经看到过几次这样的情况,其中dll具有自己的独立ACL,而不是从其文件夹继承任何内容。

In procmon, can you see a successful read of HKLM\\Software\\Classes\\CLSID{YOUR_COMPONENT_CLASS_ID} ? 在过程中,您是否可以成功读取HKLM \\ Software \\ Classes \\ CLSID {YOUR_COMPONENT_CLASS_ID}?

Maybe you have issues with rights in registry key associated to your component. 也许您与组件关联的注册表项的权限存在问题。

For a list of registry keys involved, please see the msdn docs . 有关所涉及的注册表项的列表,请参阅msdn docs

Best 最好

Thanks for the responses. 感谢您的答复。 I have this working now. 我现在正在工作。 It was related to a another COM dll that was being called from the VB6 dll. 它与另一个从VB6 dll调用的COM dll有关。 However, I used to be able to step into VB6 from ASP/IIS6 but this now fails with a permissions error again. 但是,我曾经能够从ASP / IIS6进入VB6,但是现在失败,再次出现权限错误。 I will post another question for this. 我将为此发布另一个问题。 Thanks. 谢谢。

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

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