Outlook Send Mail : Unable to cast to COM object

#1

Creating a process for Outlook Send Email however during test run getting below error

Error occurred while performing outlook automation Unable to cast COM object of type ‘Microsoft.Office.Interop.Outlook.ApplicationClass’ to interface type ‘Microsoft.Office.Interop.Outlook._Application’. This operation failed because the QueryInterface call

Please help in resolving this issue

#2

Hi,
Before using outlook activity, ensure:

Outlook must be installed on your system .( Supported version : 2013 / 2016)
Outlook must be open

Regards,
Amit

#3

Hi Amit

Already checked that. Outlook is open and version is 2016
Got some reference in below link, trying that now

#4

Repaired MS Office, but still getting the same error

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

#5

Hi,

Ae you using web version or desktop version of outlook.

#6

Outlook client on laptop

Found the resolution and able to send mail. Anyone getting same error, should follow the steps as mentioned in below link.