Microsoft office not responding! Unable to cast COM object of type

Hello i am getting the following error using invoke method to get mail.

Another process i am running getting workbook error looks like microsoft office apps are not working please suggest.

Invoke Method: Unable to cast COM object

of type

  • Microsoft.Office.Interop.Outlook.Applicatio nClass to interface type
  • Microsoft.Office.Interop.Outlook. Applicatio n’. This operation failed because the QueryInterface call on the COM component for the interface with lID {00063001-0000-0000-

C000-000000000046;* failed due to the following error: Element not found (Exception from HRESULT: 0x8002802B (TYPE_E_ELEMENTNOTFOUND)).

Make sure that your project is not set to start in background as it appears it cannot find some UI Elements.

Then run the Office repairs as an Administrator and restart the PC.

Check here Studio - Microsoft Office issues