无法加载文件或程序集“Microsoft.Office.Interop.Excel,版本=14.0.0.0 [英] Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=14.0.0.0

查看:59
本文介绍了无法加载文件或程序集“Microsoft.Office.Interop.Excel,版本=14.0.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用 MS Excel 文件读/写的网站.

I have web-site that uses MS Excel files read/write.

我将相关的 dll 添加到站点的 Bin 文件夹中,它在我的本地主机上运行良好(我认为因为我在我的电脑上安装了 MS Excel 2010)

I added related dll's to Bin folder of the site, and it works perfect on my local host (I think bacause I have installed MS Excel 2010 on my pc)

但是当我把它上传到远程电脑并运行网站时,它抛出一个错误:

But when I uploaded it to remote pc and run the site, it throws an error:

无法加载文件或程序集Microsoft.Office.Interop.Excel,版本=14.0.0.0,文化=中性,PublicKeyToken=71e9bce111e9429c' 或它的依赖项之一.定位的程序集的清单定义与程序集引用不匹配.(HRESULT 的例外:0x80131040)

Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Bin 文件夹中的文件是:

files in Bin folder are:

Microsoft.Vbe.Interop.dll 
office.dll 
Microsoft.Office.Interop.Excel.dll 
Microsoft.Office.Interop.Excel.xml 
office.xml 

我已经在远程电脑上安装了Microsoft Office 2010:Primary Interop Assemblies Redistributable",http://www.microsoft.com/en-us/download/details.aspx?id=3508

I've installed on remote pc "Microsoft Office 2010: Primary Interop Assemblies Redistributable", http://www.microsoft.com/en-us/download/details.aspx?id=3508

但是出现同样的错误.

如何解决这个问题?

谢谢.

推荐答案

一种方法 - 安装 MS Office (MS Excel)

One way - Install MS Office (MS Excel)

这篇关于无法加载文件或程序集“Microsoft.Office.Interop.Excel,版本=14.0.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆