/*By Jiangong SUN*/
If you have met this exception : Could not load file or assembly '{Library_Name}, Version=0.0.0.0, Culture=neutral, PublicKeyToken={Token}' or one of its dependencies. Tentative de chargement d’un programme de format incorrect.
It means the dll that you have referenced is not compatible with your project's build configuration likePlatform, or
Platform target.
If your the reference library is 32 bit, you need to make sure your platform and platform target is x86.
If your the reference library is 64 bit, you can configure the platform and platform target as Any CPU.
Once all these information are consistent, try to rebuild and rerun the project. :)
Enjoy coding!
reference:
http://stackoverflow.com/questions/11370344/could-not-load-file-or-assembly-an-attempt-was-made-to-load-a-program-with-a

本文介绍了当遇到DLL文件与项目构建配置不兼容的问题时的解决方法。主要关注于如何根据引用库的位数(32位或64位)来调整项目的平台目标设置,确保项目能够正确地加载DLL。

1633

被折叠的 条评论
为什么被折叠?



