Unable to call excel, error message is as follows, what should I do?

log:Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005 服务器运行失败 (0x80080005 (CO_E_SERVER_EXEC_FAILURE)).

@azez Welcome to the community

Please share the Error screenshot

Cheers
Happy Automation

Seems you had a weird issue with Office license.

Had to do the below steps as well:

  1. DCOM Config > Office Licensing COM Server 16. Right click > Properties
  2. In the Identity tab, update to Interactive user
  3. In the Security tab, give Local Launch permissions to the user being used as the Application Pool identity in the Launch and Activation Permissions section.