08-19-2021 04:55 AM
Dear All,
I want to use .NET dll from DMX NicoClaudie Architectural. But I found the problem System.BadImageFormat Exception. I already reading through many post in forum . I tried several solution like this solution from this post :
https://forums.ni.com/t5/LabVIEW/NET-DLL-System-BadImageFormatException/td-p/1829383
After making config file , but its not working either.
I already checked the .NET that used by this apps , they used NET 4.0 and amd 64.
Do you have suggestion for me ? Maybe I'm missing something . Thank You .
Solved! Go to Solution.
08-19-2021 06:11 AM - edited 08-19-2021 06:12 AM
So the .Net assembly is using amd64 code! Are you also using LabVIEW 64-bit to access this assembly then? You can not mix and match x86 and x64/amd64 code in the same process, also not in .Net.
Only when an assembly is compiled fully as CIL, can it be loaded in either environment. Mixed mode or binary assemblies need to match the environment in which you want to load them.
08-19-2021 06:50 AM
Yes sir . I'm using LabVIEW 64 bit . But still encountering same problem .
08-26-2021 02:26 AM
Dont use constructor node for calling dll.
I figured it out using Call library function node .