Rootop 服务器运维与web架构

Could not load file or assembly ‘Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. 系统找不到指定的文件

| 暂无评论

Server Error in ‘/’ Application.
——————————————————————————–

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly ‘Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. 系统找不到指定的文件。

Source Error:
Line 25:             以标识传入的用户。
Line 26:         –>
Line 27:     <add assembly=”Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C”/>
Line 28:     <add assembly=”Microsoft.Vbe.Interop, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C”/>
Line 29:     <add assembly=”office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C”/>
 

Source File: D:\wz\soft\web\web.config    Line: 27

Assembly Load Trace: The following information can be helpful to determine why the assembly ‘Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
——————————————————————————–
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

解决方法:

安装office2007 (推荐专业版,安装的时候尽量选择“立即安装”不要选择“自定义”)

网站需要加载office2007的excel组件,服务器上没有,所以报错!

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/928.html

作者:Venus

服务器运维与性能优化

发表回复