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

后端 未结 6 1992
孤城傲影
孤城傲影 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:15

    There is a program called Dependency Walker which allows you to see the dependencies of a given PE file (dll, exe, ocx...).

    This error is really annoying, very difficult to debug. You have to make sure that your dll is present as well as ANY dependency this dll has. This keypoint is usually where the headache kicks in.

提交回复
热议问题