Jump to content

Resolved: Interface not registered (Exception from HRESULT: 0x80040155)


Barrett Gardner
 Share

Recommended Posts

  • Cloud Solutions Architect

The following error may be thrown by eCapture Worker servers configured with Office 2016, resulting in unsuccessful task completion in any job:

 

System.Exception: System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to the following error: Interface not registered (Exception from HRESULT: 0x80040155).

at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)

at Microsoft.Office.Interop.Excel.ApplicationClass.set_DisplayAlerts(Boolean RHS)

at Ipro.eCapture.ecProcess.Service.ObjectManager.get_ExcelApplication()

at Ipro.eCapture.ecProcess.Service.PageCounter.ExcelGetPageCount(String fileName)

at Ipro.eCapture.ecProcess.Service.PageCounter.DiscGetPageCount(String targetFileName, Int32 stellentID)

at Ipro.eCapture.ecProcess.Service.PageCounter.GetPageCount(String targetFile, Int32 stellentID, Int32 timeoutSeconds)

at Ipro.eCapture.ecProcess.Service.WorkDispatcher.GetPageCount(String targetFile, Int32 stellentID, Int32 timeoutSeconds)

at Ipro.eCapture.ecProcess.Service.ecProcessService.GetPageCount(GetPageCountArgs args)

at Ipro.eCapture.Processing.ecProcessWrapper.GetPageCount(String targetFile, Int64 stellentID, Int32 timeoutLimit)

at Ipro.eCapture.Discovery.DiscoverDocument.CalculatePageCount(DiscoverDocumentStatus& DocStatus, ecProcessWrapper& processor, Int32 TaskTimeout)

at Ipro.eCapture.Discovery.DiscoverDocument.DiscoverDocument(DiscoverDocumentStatus& DocStatus, ResourcesProxy& Resources, ecProcessWrapper ecProcessor, Int32 indexesPerJob, List`1& indexTargetKeysToAdd, Boolean& lotusInitialized, Boolean lotusDXLMethod, Boolean extractAttachmentAndEmbedded)

at Ipro.eCapture.Discovery.Discovery.DiscoverDocumentGroup()

at Ipro.eCapture.Discovery.Discovery.Discover(Task& t)

 

A repair on the Office installation followed by server reboot resolved this error.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...