System.IO.FileNotFoundException: Could not load file or assembly 'X' or one of its dependencies when deploying the application

前端 未结 4 441
既然无缘
既然无缘 2020-11-30 09:39

I\'m having a strange problem with deploying an application, which references an assembly, written in managed c++.

I\'ve created an assembly X, compiled it and refer

4条回答
  •  再見小時候
    2020-11-30 10:22

    ... Could not load file or assembly 'X' or one of its dependencies ...

    Most likely it fails to load another dependency.

    you could try to check the dependencies with a dependency walker.

    I.e: https://www.dependencywalker.com/

    Also check your build configuration (x86 / 64)

    Edit: I also had this problem once when I was copying dlls in zip from a "untrusted" network share. The file was locked by Windows and the FileNotFoundException was raised.

    See here: Detected DLLs that are from the internet and "blocked" by CASPOL

提交回复
热议问题