Error: failed to Load file or assembly Microsoft. Office. InterOP. Excel, version = 14.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c "or one of its dependencies. The program list definition found does not match the Assembly reference. Exception from hresult: 0x80131040
Win7 environment. Windows XP with 2003 Excel files exported successfully
You have been using office2010dll for debugging and cannot export old versions such as Excel 2003.
Delete Microsoft. Office. Core and Microsoft. Office. InterOP. Excel. dll in later versions. (Do not reference two versions of DLL ..)
Re-reference 11.0.5530.0 DLL (2003 ?)
Microsoft. Office. InterOP. Excel. dll
The environment is cleared and generated again.
Finally, no error is reported.
Error: failed to Load file or assembly Microsoft. Office. InterOP. Excel, version = 14.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c "hresult: 0x80131040