I m getting the following issue when i try to build my C#
Application. i want to export the data into Office 2010 or 2007. The
error is as Follow
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)).
After the struggle of 3 to 4 hours , i find the solutions about the above issue. The issue was that i was adding the reference of COM rather then .net.
When i add .net excel reference then this issue solved.
Any way, i have all thing installed PIA and my machine is x86.