无法加载文件或程序集或其依赖项之一。该系统找不到指定的文件 [英] Could not load file or assembly or one of its dependencies. The system cannot find the file specified

查看:301
本文介绍了无法加载文件或程序集或其依赖项之一。该系统找不到指定的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个asp.net项目。当我构建解决方案时,dll编译正常,我在本地没有任何问题。当我复制测试服务器或生产服务器中的dll,它显示消息

Hi,

I have an asp.net project.When I build the solution,the dlls are compiling fine and I dont have any issues locally.When I copy the dll in the test server or production server,Its showing the message "

Could not load file or assembly  or one of its dependencies. The system cannot find the file specified





这对所有项目都有效。以前它工作正常。最近我收到此错误。



请尽快帮我解决这个问题。



谢谢



我尝试了什么:



我尝试更改IIS中的应用程序池设置serevr local。

".

This happening for all the projects.Previously it was working fine.Recently I got this error.

Please help me to resolve this issue as soon as possible.

Thanks

What I have tried:

I tries to change the application pool settings in IIS serevr locally .

推荐答案

由于它不在你的bin文件夹中,它可能是你机器上安装的东西,而不是服务器上的东西。无论如何,错误会告诉你它是哪个dll。然后,您只需复制它或在服务器上安装软件即可。您可以在引用上设置Copy Local = true,以便将dll复制到bin文件夹。
Since it is not in your bin folder it is probably something that is installed on your machine but not on the server. Regardless, the error will tell you which dll it is. Then all you have to do is copy it or install the software on the server. You can set Copy Local = true on the reference so that the dll gets copied to the bin folder.


这篇关于无法加载文件或程序集或其依赖项之一。该系统找不到指定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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