繁体   English   中英

具体:无法加载文件或程序集“xxxx”或其依赖项之一。 该系统找不到指定的文件

[英]A specific: Could not load file or assembly 'xxxx' or one of its dependencies. The system cannot find the file specified

继承C#win表单应用程序 - VS .NET 2008。

项目构建没有错误。

导航到IDE中的显示主对话框,并显示错误屏幕并显示错误。

.dll位于bin目录中。 此外,在项目查看器中的“引用”树下具有正确的路径。

(所有支持文件/ dll 都应该在这里。)

任何想法如何解决这一问题?

编辑1启动Fuslogvw.exe没有列出任何内容。 我还需要做些什么来让这个错误显示在这里吗?

编辑2运行“ Dependency Walker ”,它出现错误:

Error: At least one required implicit or forwarded dependency was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

无法打开2个windows system32 dlls ....

我决定回答这个问题,因为

  1. 我自己正在寻找anwser,这在谷歌搜索中排名很高,但它没有答案,而且
  2. “可能的重复”无助于解决我的问题。

好的,这是对我的情况的回顾,你可以看到几乎与OP相同:

  • C#项目/解决方案 - VS .NET 2013。
  • 项目构建没有错误。
  • 引用.dll位于预定义的目录中。
  • 此外,在项目查看器的“引用”树下,它显示正确的路径。

然而,Visual Studio抱怨(在运行时):

Could not load file or assembly xxxxxx, Version=x.x.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxx or one of its dependencies. The system cannot find the file specified.

我从这里找到了解决方案, http://blogs.msdn.com/b/asiatech/archive/2013/01/09/how-to-resolve-the-could-not-load-file-or-assembly-issues -on -窗口蔚网络sites.aspx

即,在Visual Studio中,

  1. 在“解决方案资源管理器”中查找引用的程序集,例如Microsoft.WindowsAzure.StorageClient
  2. 在“属性”窗口中,将“ 复制本地 ”设置为“ True ”。

回答

它可能不是理想的解决方案,但它解决了我的问题。 如果它对你有帮助,请+1(投票)。 谢谢。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM