4
votes

In my application there is a functionality to show an excel sheet.Due to some reason we need to uninstall Microsoft Office. Now the above functionality is not working and I am getting following error.

COM object with CLSID {00024500-0000-0000-C000-000000000046} is either not valid or not registered.

Any Ideas how do I resolve this without re-installing Microsoft Office?

2

2 Answers

4
votes

Given that you've uninstalled Office the COM object you need will be unregistered.

The only way is to either reinstall Office or install the Office Tools Runtime

0
votes

You're going to have to rewrite your code that processes Excel spreadsheets without using Office automation then. There's plenty of library suggestions here

Create Excel (.XLS and .XLSX) file from C#

That question is for creation but most (if not all!) of these will read too.