PROBLEM
- Error attempting to initialize the messaging component. o System.IO.FileLoadException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8007045a.
- System.IO.FileLoadException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x800800005 (CO_E_SERVER_EXEC_FAILURE))
- System.InvalidCastException: Unable to cast COM object of the type "Word.ApplicationClass" to interface type "Word._Application". This operation failed because the QueryInterface call on the COM component for the interface with IID "{00020970-0000-0000-C000-000000000046}" failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
SOLUTION
Repairing MS Office may fix the issue, if problems persist contact Software Support for advanced troubleshooting.
- Right click on the Windows “Start” icon.
- Select “Apps and Features.”
- Locate Microsoft Office and click on it.
- Click the “Modify” button.
- When the wizard comes up, choose the option for a quick repair and follow the prompts to complete it.
If you are still getting the issue, try running Gorilla as an Administrator (right click on Gorilla and choose “Run as Administrator”). If this works, then there is security in place that does not allow Gorilla to open the Word instance unless it is run as an Administrator.