Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 529
Whiz Kid Avatar asked Jun 26 '13 14:06

Whiz Kid


2 Answers

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.

like image 192
whihathac Avatar answered Sep 29 '22 07:09

whihathac


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.

like image 29
Toby Allen Avatar answered Sep 29 '22 05:09

Toby Allen