c# - 如何调试 "Could not load file or assembly"运行时错误?

标签 c# .net load runtime ikvm

我有一个项目使用了使用 IKVM 转换的 Java 库.我添加了创建的 DLL 以及所有可能的 IKVM DLL 作为对我项目的引用,但是当我运行它时,我收到以下运行时错误:

System.IO.FileNotFoundException : Could not load file or assembly 'core, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

我不太确定如何调试此错误。有没有办法确切知道缺少哪种类型?根据描述,我猜这是生成的 DLL(来自 Java 库),但我已将其正确添加为引用。

我还做错了什么?

最佳答案

您可以使用 Fusion Log Viewer调试 .NET 应用程序中的程序集加载问题。

此外,Process Monitor在识别一般文件加载问题时非常有用。

关于c# - 如何调试 "Could not load file or assembly"运行时错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4602912/

相关文章:

windows - 确定 “System Load”

python - 简单的 pythoncurses-application 在运行时使用 100% CPU。这是正常的吗?

jquery - 如何将外部html加载到div中?

.net - ASP.NET调查问卷引擎

c# - 从WPF MVVM应用程序将参数传递给WPF用户控制库

c# - 从服务器获取当前日期时间并在 C# 中将其转换为本地时间

c# - 使用 Directshow C# 如何在多个窗口中从多个 USB 摄像头获取实时提要而不会崩溃

.net - 试图了解 .NET Core 中 appsettings.json 与 web.config 的新行为,但被 MSDN 上相互矛盾的信息弄糊涂了

c# - 如何将许多字符的组合更改为其中一种

c# - ISO/IEC 8859-2 字符的正则表达式