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

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

问题描述

希望有人可以帮助我解决这个问题。

Hope someone could help me with this.

我在Windows服务主机上托管的Web服务项目中引用了DLL代理 MonitorProxy。当我调试服务主机时,会收到以下异常:
无法加载文件或程序集 MonitorProxy,版本= 1.0.0.0,区域性=中性,PublicKeyToken =空或其依赖项之一。该系统找不到指定的文件。

I'm referencing a dll proxy "MonitorProxy" in a webservice project which is hosted on a windows service host. When I debug the service host I receive this exception: Could not load file or assembly 'MonitorProxy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

尽管我确定MonitorProxy.dll的位置正确,并且Web服务引用指向其正确位置。

Although I'm sure that the MonitorProxy.dll is correcltly located and that the webservice reference refers to its correct location.

任何想法?

非常感谢
Sam

Thank you so much in advance Sam

推荐答案

您可以使用组装绑定日志查看器以查看程序集加载日志,并检查Web服务在哪里期望所需的dll。

You can use Assembly Binding Log Viewer to view the assembly loading log and check where the web service is expecting the required dll.

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

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