Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).

Durga Kinthada (CON) 10 Reputation points
2023-09-21T12:50:17.0133333+00:00

Hi Team,

We Have created one .net core application which will read and process outlook inbox mails. It was deployed to windows scheduler.

So scheduler will run every three minutes and read inbox. On that note sometimes we are getting below issues. Please provide your suggestion.

Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).

Microsoft 365 and Office Development Other
Outlook Windows Classic Outlook for Windows For business
Developer technologies C#
{count} votes

2 answers

Sort by: Most helpful
  1. RLWA32 49,536 Reputation points
    2023-09-21T14:15:59.8266667+00:00

    Automating Office applications in a non-interactive environment (e.g., task scheduler) is not supported by Microsoft. See Considerations for server-side Automation of Office.

    0 comments No comments

  2. KOZ6.0 6,655 Reputation points
    2023-09-21T15:49:54.59+00:00

    Create a program that resides in the task tray and launches it every 3 minutes.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.