新闻  |   论坛  |   博客  |   在线研讨会
.NET DLL System.BadImageFormatException in LabVIEW
luker | 2017-01-19 14:38:48    阅读:1285   发布文章

I have builded a .NET dll which is a wrapper of the or-tools, http://code.google.com/p/or-tools/, made by google. I import these by "tools->import->.NET controls to pallet->browse" and select the various dll's. When I do this I get the error

 

pic.png

 

Translated from Dutch to English it comes to this:


"System.BadImageFormatException: Can not load file of assembly C:\or-tools\Google.OrTools.ConstraintSolver.dll or one of it dependencies. This assembly is build by a runtime newer then the currently loaded runtime, and can not be loaded. <append><b>System.BadImageFormatException</b>.

My question is why does this error actually occure? Is it mostlikely because I builded it with .NET 4.0? If so, will it help if I build it with .NET 3.5? Or does LabVIEW doesn't support that either? I hope a NI employee can give me some insight Smiley Happy

******************************************************************************************

I think the actual problem in your case is more likely to be 32-bit vs 64-bit. Did you download the correct one for your operating system? Or, did you compile a 64-bit version and are running 32-bit LabVIEW (or vice-versa).

http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/configuring_clr_version/

http://digital.ni.com/public.nsf/allkb/32B0BA28A72AA87D8625782600737DE9?OpenDocument



*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。

参与讨论
登录后参与讨论
推荐文章
最近访客