Unable to execute scheduled tasks in Logoff mode due to OfficeC2RClient.exe and throwing HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)

0

When I tried to execute a scheduled job with my application that writes data inside Excel, so I noticed while executing logoff mode task that time OfficeC2RClient.exe launching in the background, and because of this its throwing Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE). This issue basically occurred with Windows 10 OS (version 1809 or later) and Office 365 ProPlus.

One thing I noticed, if I restart manually "Microsoft Office Click-to-Run Service" once and try to execute the same task then OfficeC2RClient.exe not launching and it's working smoothly without any issue, but the thing is I have to do this job every first time after Restart the system also if you schedule a job without logoff mode then also it works fine so the main issue with Scheduler logoff mode.

If you wanted to replicate the same issue at your end then write code for launching the excel file through VBA code script and scheduled that script on logoff mode with the help of "Task Scheduler".

Can you please guide me on how I permanently stopped OfficeC2RClient.exe automatically? or else is there any other way to handle this type of error?

c#
office365-apps
windows-task-scheduler
asked on Stack Overflow May 19, 2020 by Anand Dhanani

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0