码迷,mamicode.com
首页 > 其他好文 > 详细

BadImageFormatException : Could not load file or assembly or one of its dependencies.

时间:2014-11-08 02:08:31      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:csharp

/*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

BadImageFormatException : Could not load file or assembly or one of its dependencies.

标签:csharp

原文地址:http://blog.csdn.net/garcon1986/article/details/40911119

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!