‘Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’

时间:2022-09-21 03:13:14

Solutions:

Select the 'Microsoft.Office.Interop.Excel' reference -> right click -> properties -> set 'Embel Interop Types' to False -> set 'Copy Local' to True.

 

In my project. I just copy the 'Microsoft.Office.Interop.Excel.dll' to my local libraries.

The "'office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies" exception was caught when I run my App.

Solutions:

Copy the 'Office.dll' to libraries again. and then 

Select the 'Office' reference -> right click -> properties -> set 'Embel Interop Types' to False -> set 'Copy Local' to True.

Done.

 

If you want more info please click the URL as below:

http://cbtr.net/red8rain/2012/04/19/csharp-could-not-load-file-or-assembly/#more-1091

相关文章