Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Actually I want to read Excel sheet in my application using c#

I have add reference of Microsoft.Office.Interop.Excel;
My code is
C#
using Microsoft.Office.Interop.Excel;

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

but it gives an error

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070002
Posted

1 solution

Possibly a missing dependency, see, for instance, this Stack Overflow question: "Can't instantiate COM component in C# - error 80070002"[^].
 
Share this answer
 
Comments
Member 7909353 15-May-14 4:44am    
I have gone above link and followed instruction.
I have found two missing dll
IESHIMS.DLL
WER.DLL

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900