检索组件的COM类工厂失败 [英] Retrieving the COM class factory for component failed
问题描述
我使用excel对象(COM组件)进行excel操作。它在我的电脑上工作正常,但当我部署到我们的Intranet的应用程序,我得到这个错误:
检索COM类工厂组件与CLSID {00024500-0000-0000-C000-000000000046}失败,原因如下:80070005
and impersonate = true in my web.config
。
我在组件服务中做了所有设置,相同的错误。
请帮助
错误当我部署我的应用程序。我有来自此网站的解决方案: CLSID XXX的组件失败由于以下错误:80070005访问被拒绝
以下是此解决方案:
-
在 DCOMCNFG 中,右键点击我的电脑,然后选择属性。
-
选择 COM证券 访问权限,点击修改默认值,然后向其添加网络服务,并授予允许本地访问权限。对<
-
在启动和激活权限中,点击修改默认值并向其添加网络服务,并授予本地启动和本地激活权限。对< Machine_name> \Users 。
*我使用表单验证。
I am using an excel object (COM component) for excel manipulation. It works fine on my PC, but when I deploy the application to our Intranet I am getting this error:
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005
I am using windows authentication and impersonate=true in my web.config
.
I made all the settings in component service but it still gives the same error.
Please help
I had the same error when I deployed my app. I've got solution from this site: Component with CLSID XXX failed due to the following error: 80070005 Access is denied
Here is this solution:
In DCOMCNFG, right click on the My Computer and select properties.
Choose the COM Securities tab.
In Access Permissions, click Edit Defaults and add Network Service to it and give it Allow local access permission. Do the same for < Machine_name >\Users.
In Launch and Activation Permissions, click Edit Defaults and add Network Service to it and give it Local launch and Local Activation permission. Do the same for < Machine_name >\Users.
*I used forms authentication.
这篇关于检索组件的COM类工厂失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!