How to debug “Could not load file or assembly” runtime errors?

后端 未结 6 1988
孤城傲影
孤城傲影 2020-12-03 16:56

I have a project that uses a Java library converted using IKVM. I added the created DLL plus all possible IKVM DLLs as references to my project, but when I run it, I get the

6条回答
  •  遥遥无期
    2020-12-03 17:39

    The dependency walker statically resolves all the DLLs needed by a native PE file and flags missing dependencies, while Fusion Log Viewer catches assembly binding problems in managed code during runtime. For managed .Net code that loads native DLLs dynamically these tools are not enough.

    Here is a blog post on how you can use Process Monitor to debug “Could not load file or assembly” problems: https://www.codeproject.com/Articles/560816/Troubleshooting-dependency-resolution-problems-usi

提交回复
热议问题