无法加载文件或程序集 [英] Can not load file or asembly

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

问题描述

我正在一个网站上工作,当我在出现错误后将其加载时进入其中一个文件时,该文件位于web.config文件中.....谢谢


错误2无法加载文件或程序集"Microsoft.Office.Interop.PowerPoint,版本= 12.0.0.0,Culture = neutral,PublicKeyToken = 71e9bce111e9429c"或其依赖项之一.该系统找不到指定的文件. C:\ work \ chris \ 10312011 \ WebSite2 \ Web.config 18 

解决方案

在计算机上安装Office的.net扩展名.


将对Microsoft.Office.Interop.Excel程序集的引用添加到您的应用程序中.

点击项目->添加参考->净额-> Microsoft.Office.Interop.Excel->单击确定.

调试应用程序然后运行.


朋友您好,请执行此操作.

首先,我想知道您实际上是在代码或项目中使用该库的....


如果是,那么执行此操作....

1)从您的web.config中删除该配置行
2)然后通过右键单击引用并选择添加引用,再次将该库的引用分配给您的项目.

我认为它将解决您的问题...


或者,如果您不在项目中使用该库,则只需从web.config中删除该配置即可..


I am working on a site and when i get in one of the files when i load it following error, this is in the web.config file.....thanks


Error	2	Could not load file or assembly 'Microsoft.Office.Interop.PowerPoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.	C:\work\chris\10312011\WebSite2\Web.config	18

解决方案

Install the .net extensions for Office on your machine.


Hi,
Add that reference of Microsoft.Office.Interop.Excel assembly to ur application.

Click On Project --> Add Reference --> Net --> Microsoft.Office.Interop.Excel -- > Click On Ok.

Debug the application and than run.


Hello Friend please do this....


First of all i want to know that you actually use that library in you code or project....


if yes then do this....

1) remove that configuration line from your web.config
2) then again assign the reference of that library to your project by right clicking on references and choosing add reference..

i think it will solve your problem...


or if you not use that library in side you project then just remove that configuration from your web.config..


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

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