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

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

问题描述

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

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

我添加相关的DLL的该网站的Bin文件夹,它完美的作品我的本地主机上(我想bacause我已经在我的电脑上安装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,文化=中性公钥= 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 

我已经安装在远程PC的Microsoft Office 2010:主互操作程序集可再发行组件
http://www.microsoft.com/en-us/download /details.aspx?id=3508

但同样的错误ocurrs。

But same error ocurrs.

如何解决这个问题?

感谢。

推荐答案

一个办法 - 安装MS Office(MS Excel中)

One way - Install MS Office (MS Excel)

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

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