System.BadImageFormatException: 'Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 800700c1 is not a valid Win32 application. (Exception from HRESULT: 0x800700C1).' I'm getting this error while running this code to export from data grid view to an excel file. I've tried every solution in stackoverflow but nothing's working. I'm using Microsoft.Office.Interop.Excel.this shows no matter what i change.
User contributions licensed under CC BY-SA 3.0