Search code examples
asp.netwcfsilverlightsilverlight-4.0wcf-ria-services

Silverlight error - While creating Workbook object of interope excel


Below error is coming while I create using below line from domain service.

Microsoft.Office.Interop.Excel.Workbook excel = new Microsoft.Office.Interop.Excel.Workbook();


---------------------------
Error
---------------------------
Invoke operation 'CallExcel' failed. Retrieving the COM class factory for component with CLSID {00020819-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
---------------------------
OK   
---------------------------

What is cause of this wierd error? If i do with word object then it works with interop too.


Solution

  • u should create excel app. first. MSDN