问题
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