I recently install UiPath Studio on my desktop and on a MS Server 2012 R2. Both systems have MS Office 365 installed with the same version. The Word Automation (i.e. Word Application Scope, Add Image, Export to PDF) works properly on the desktop installation, but not on the server installation. I get the following error on the server system:
If Word is not open:
Message: Error openning document, make sure Word application is installed
Source: Word Application Scope
Exception Type: Exception
If I open Word:
MIPSReport02 has thrown an exception
Message: Unable to cast COM object of type âMicrosoft.Office.Interop.Word.ApplicationClassâ to interface type âMicrosoft.Office.Interop.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: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
Source: Word Application Scope
Exception Type: InvalidCastException
System.InvalidCastException: Unable to cast COM object of type âMicrosoft.Office.Interop.Word.ApplicationClassâ to interface type âMicrosoft.Office.Interop.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: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at Microsoft.Office.Interop.Word.ApplicationClass.get_Documents()
at UiPath.Word.WordDocumentâŚctor(String documentPath, Boolean createNew)
at UiPath.Word.Activities.WordApplicationScope.Execute(NativeActivityContext context)
at System.Activities.NativeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Has anyone seen this issue?