Jason Anderson

Jason Anderson

  • NA
  • 7
  • 45k

C# Excel Interop COMException

Aug 10 2011 8:23 AM

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:

Excel.Application xlApp = new Excel.Application();
I am using Visual Studio 2010 on SBS 2008 server.

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.

Answers (3)