无法加载文件或程序集"Microsoft.Office.Interop.Word,版本= 11.0.0.0,文化=中性,PublicKeyToken = 71e9bce111e9429c"或其依赖项之一. [英] Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies.

查看:163
本文介绍了无法加载文件或程序集"Microsoft.Office.Interop.Word,版本= 11.0.0.0,文化=中性,PublicKeyToken = 71e9bce111e9429c"或其依赖项之一.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网页C#.net在iis中可以正常工作.但是当我在另一台服务器上发布时,它给出了错误.下面我提到了错误



my web page C#.net is work properly in my iis .but when i publish in another server it give errors. Below i mentioned the error



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.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.

Source Error:


Line 43:                <add assembly="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 44:                <add assembly="Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 45:                <add assembly="Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/></assemblies>
Line 46:        </compilation>
Line 47:        <!--

Source File: D:\WEBDATA\sanvelsinfo.com\web.config    Line: 45

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Office.Interop.Word, Version=11.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:2.0.50727.5448; ASP.NET Version:2.0.50727.5456

推荐答案

我不建议将Interop库用于Web应用程序.
阅读这篇建议其他解决方案的文章:

http://support.microsoft.com/default.aspx?scid=kb;EN- US; q257757 [ ^ ]
I do not recommend to use Interop libraries for a web application.
Read this article that suggests also alternative solutions:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757[^]


在Visual Studio中的解决方案中,右键单击上述dll,并设置"Copy Local" = true,然后发布.

您也可以将dll手动复制到IIS中的IIS到IIS中已发布站点的bin文件夹中.
In your solution in Visual Studio, right click the dlls mentioned above and set ''Copy Local'' = true and then publish.

You can also manually copy the dlls to the IIS to the bin folder of the published site in IIS.





您必须检查程序集的版本或检查解决方案资源管理器参考文件夹中是否有Microsoft.Office.Interop.Word.


问候,
索拉(Saurabh)
Hi,


you have to check version of assembly or check that Microsoft.Office.Interop.Word is available in you solution explorer Reference Folder.


Regards,
Saurabh


这篇关于无法加载文件或程序集"Microsoft.Office.Interop.Word,版本= 11.0.0.0,文化=中性,PublicKeyToken = 71e9bce111e9429c"或其依赖项之一.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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