admin管理员组

文章数量:1644031

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/red8rain/2012/04/19/csharp-could-not-load-file-or-assembly/#more-1091

转载于:https://wwwblogs/vincentDr/archive/2013/01/21/2869679.html

本文标签: ExcelVersionMicrosoftofficeInterop