Error: failed to Load file or assembly Microsoft. Office. InterOP. Excel, version = 14.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c "hresult: 0x80131040

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.