由于以下错误,检索具有CLSID的组件的COM类工厂失败:80070005拒绝访问 [英] Retrieving the COM class factory for component with CLSID failed due to the following error: 80070005 Access is denied

查看:700
本文介绍了由于以下错误,检索具有CLSID的组件的COM类工厂失败:80070005拒绝访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS中托管了一个asp.net。使用Com库Microsoft Word 14.0对象库。我使用它将单词Document转换为HTML,在我的机器上它可以工作。我的机器上有Office 2007。但是当我尝试在服务器上运行我的应用程序时它会给我以下错误

I have an asp.net hosted in IIS. that uses the Com library "Microsoft Word 14.0 Object Library". I am using this to convert the word Document to HTML, on my machine it works. I have Office 2007 on my machine. but when i try to run my app on the server it gives me the Following error


检索具有CLSID $ b的组件的COM类工厂$ b {000209FF-0000-0000-C000-000000000046}由于以下
错误而失败:80070005访问被拒绝。 (HRESULT异常:0x80070005
E_ACCESSDENIED))。

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 E_ACCESSDENIED)).

我已经给予aspnet用户和其他用户所有权限完全访问但这不起作用,

i have given all the permissions to the aspnet user and other users full access but this does not work,

推荐答案


  1. 从开始菜单中,单击运行并键入Dcomcnfg .exe。

  2. 在组件服务中,单击控制台根目录,展开组件服务,展开计算机,展开我的电脑,展开DCOMConfig。

  3. 搜索Microsoft Word 14.0对象库。点击它。

  4. 右键单击并选择属性。

  5. 在安全选项卡上,选择启动和激活部分中的自定义。

  6. 单击编辑并添加运行应用程序的应用程序池的标识。

  7. 对访问权限重复上述步骤

  1. From the Start menu, click Run and type Dcomcnfg.exe.
  2. In Component Services, click Console root, expand Component Services, expand Computers, expand My computer,expand DCOMConfig.
  3. Search for Microsoft Word 14.0 Object Library. Click on it.
  4. Right click and select Properties.
  5. On security tab, select Customize in "Launch and Activation" section.
  6. Click edit and add identity of app pool under which you application is running.
  7. Repeat above step for "Access Permission"

这篇关于由于以下错误,检索具有CLSID的组件的COM类工厂失败:80070005拒绝访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆