Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8000401a

 ̄綄美尐妖づ 提交于 2019-12-07 04:50:20

问题


Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8000401a.

We are getting above said error from our production server which is hosted in SharePoint farm environment, where as not able to reproduce the same issue from our staging server which is standalone server.

I hope, the above said error will be throwing when Microsoft.Office.Word component accessing from remote machine. I've updated all users under "Launch and activation Permission" in DCOMConfig as mentioned in Retrieving the COM class factory for component with CLSID Error: 8000401a

The interesting here is, the issue has been resolved automatically when user keeps clicking on the "Report Generation" button in my web page. I understand the issue seems to be happened on occasionally as we cannot predicate when this will be thrown.


回答1:


I found the solution,

using DCOMCNFG.exe open it and go to Component Service ->Computers->My Computer->DCOM Config-> check for Microsoft Office Word option and select tab Security.Here you will get the options for Launch and Activation Permission->select Customize and click on edit and the add the user that will runs your Application with full access.

That's all ,this resolve my problem hop this will help.




回答2:


This appears to be a permissions error. you may need to look through your code and configuration to ensure that all passwords are correct and everyone has the right permissions.



来源:https://stackoverflow.com/questions/17322306/retrieving-the-com-class-factory-for-component-with-clsid-000209ff-0000-0000-c0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!