Hello.
I am getting this error:
"Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."
At this line:
Code
Excel.Application xlApp = new Excel.Application();I do not have Microsoft Excel installed on this SBS 2008 server.
Excel is installed on client computers.
This program is for a Web Application inside SharePoint 2010 that I want perform Excel tasks on the client-side.
Any suggestions on how to correct this error?
Thanks for your help.

VulpesRank #55 · 29.2K reputationPosted Aug 10, 2011, 5:25 AM EDT
Azam Shaikh4 reputationPosted Jun 25, 2014, 9:32 PM EDT
Rahul PrasadRank #2,557 · 546 reputationPosted Jul 22, 2014, 11:33 PM EDT
As Vulpes said, you need to have MS Excel installed on both developer and client machine if you're developing an application with the help of Microsoft.Office.Interop.Excel. If you want to manage Excel file without MS Excel, you need to use any other 3rd-party Excel tool I think.Good luck.