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
版权声明:本文标题:‘Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’... 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1729377972a1199058.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论