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

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

We get the above error from our production server, which is hosted in a SharePoint farm environment, where it cannot reproduce the same problem from our staging server, which is a stand-alone server.

I hope that the above error will throw when the Microsoft.Office.Word component is accessible from a remote machine. I updated all the users in the "Launch and Activation Permissions" section of DCOMConfig, as indicated in Extracting the factory COM class for a component with CLSID error: 8000401a

Interestingly, the problem was resolved automatically when the user clicks the Create Report button on my web page. I understand that the problem seems to happen sometimes, because we cannot predict when it will be thrown.

+4
source share
2 answers

I found a solution

using DCOMCNFG.exe, open it and go to Component Service → Computers-> My Computer-> DCOM Configuration-> check the box for Microsoft Office Word and select the Security.Here tab, you will get the options to start and activate. > select "Configure" and click "Change" and add the user who will run the application with full access.

So that all this helps solve this problem, it will help.

+2
source

This one appears as a permission error. you may need to review your code and configuration to make sure all passwords are correct and that everyone has rights.

+1
source

Source: https://habr.com/ru/post/1488311/


All Articles