asp.net – 无法加载文件或程序集’Microsoft.Office.Interop.Excel,Version = 14.0.0.0

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

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

但是当我将它上传到远程PC并运行该站点时,它会抛出一个错误

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文件夹中的文件是:

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

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

但同样的错误发生了.

如何解决这个问题?

谢谢.

解决方法

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

相关文章

这篇文章主要讲解了“WPF如何实现带筛选功能的DataGrid”,文...
本篇内容介绍了“基于WPF如何实现3D画廊动画效果”的有关知识...
Some samples are below for ASP.Net web form controls:(fr...
问题描述: 对于未定义为 System.String 的列,唯一有效的值...
最近用到了CalendarExtender,结果不知道为什么发生了错位,...
ASP.NET 2.0 page lifecyle ASP.NET 2.0 event sequence cha...