em2018
Newbie level 6
C# error message "An attempt was made to load a program with an incorrect format"
Hi everyone,
I just recieved this error message from a C# program I am trying to run in visual studio for a RFID reader module:
Can anyone offer a solution why this must be happening? I have tried using different CPU settings.
Thanks,
Em
Hi everyone,
I just recieved this error message from a C# program I am trying to run in visual studio for a RFID reader module:
"openresult =StaticClassReaderB.AutoOpenComPort(ref port,ref fComAdr,fBaud,ref frmcomportindex);"
"System.BadImageFormatException: 'An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)' "
Can anyone offer a solution why this must be happening? I have tried using different CPU settings.
Thanks,
Em