A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
I have a c# program running as a service on my windows 11 PC (for about 9 months now). But since the weekend I get this error. Error Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
This is my code
Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application();
Microsoft.Office.Interop.Excel.Workbook xlWorkBook = xlApp.Workbooks.Open(@"C:\Dealer Limits.xlsb", ReadOnly: true);
Microsoft.Office.Interop.Excel.Worksheet xlWorkSheet = xlWorkBook.Worksheets["Limits"];
xlApp.Run("LoadDataFromExcelToSQL");