由于以下错误,检索具有CLSID {XXXX}的组件的COM类工厂失败:80040005 [英] Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040005

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

问题描述

当我的Web服务尝试通过.net Web服务实用地打开MS Word文档时,出现以下错误.当我通过Visual Studio运行Web服务时,它工作正常,但是当我在IIS 7上部署Web服务时,出现错误

I am getting the below mentioned error when my web service tries to open MS word document pragmatically through my .net web service. When I run web service through visual studio, it works fine but when I deploy web service on IIS 7, I get the error

Retrieving the COM class factory for component with CLSID
{000209FF-0000-0000C000-000000000046} failed due to the following error: 80070005
Access is Denied



我正在使用64位系统和Office2007.任何一种解决方案都可以帮助我解决问题.



Im using 64-Bit system and Office 2007. Can any 1 help me to fix out the problem.

推荐答案


http://stackoverflow.com/questions/3477086/accessing-office-word- [ 3.在选项卡"中,"COM安全性">>".启动和激活权限,单击编辑默认值"
4.添加用户(例如IIS_IUSRS)或服务
5.选中允许本地启动和本地激活
http://stackoverflow.com/questions/3477086/accessing-office-word-object-model-through-asp-net-results-in-failed-due-to-the[^]

1.In the line of command put DCOMCNFG
2.Click Right on Console Root > Component Service > Computers > My Computer, And Select Properties
3.In the Tab COM Security > Launch and Activation Permissions Click in Edit Default
4.Add the User (Ex. IIS_IUSRS) or service
5.Check Allow Local Launch and Local Activation


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

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