The Microsoft.Office.Interop.Excel is not working when the system has installed Kingsoft sheets while it works when has MS excel or WPS

Microsoft.Office.Interop.Excel.Application ExcelApplication = new Microsoft.Office.Interop.Excel.Application();

gives error :

{"Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070002 The system cannot find the file specified. (Exception from HRESULT: 0x80070002).":null}

asked on Stack Overflow Nov 6, 2019 by TestersBoard Team • edited Nov 6, 2019 by Jazb

1 Answer


Excel Interop is provided by Microsoft Office, Kingsheet does not provide it. Upshoot: If possible, use some abstraction of excel worksheets whih works without Interop (which has other drawbacks, too), e.g. EPPLus.

answered on Stack Overflow Nov 6, 2019 by Christian Sauer

User contributions licensed under CC BY-SA 3.0