Question
Cigna Corporation
IN
Last activity: 3 Dec 2018 5:35 EST
Com error with Outlook component
Hi All,
I'm working with sending a new mail through outlook.I'm able to send mail when debugging or running through Pega Robotics Studio( 8.0.1076.0). But on loading to Pega runtime facing below automation error at OutlookMail.New().
"Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Outlook._MailItem'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063034-0000-0000-C000-000000000046}' failed due to the following error: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)). "
Could someone please help on this.Thanks in advance.