错误:上传网站时

问题描述:

Error Msg: Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies

Error Shows in web.config file

<add assembly="Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/></assemblies>

您安装了主互操作程序集吗?您需要在执行Excel处理代码的计算机上安装MS Office(或至少Excel)。没有Excel,它将无法运行。要使用Office的Interop程序集,需要在运行该应用程序的计算机上安装MS Office。



您可以从此处 [ ^ ]。





- Amit
Have u installed Primary interop assemblies? You need to install MS Office (or at least Excel) on the machine executing your Excel handling code. It won't work without Excel. To use the Interop Assemblies for Office, MS Office needs to be installed on the machine running the application.

You can download the components from here[^].


--Amit