I've tried reinstalling ms office and also installed office tool runtime. I'm still getting this error while exporting data to an excel file

2

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.

c#
excel-interop
badimageformatexception
asked on Stack Overflow Jun 25, 2018 by datestone

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0