C# error message "An attempt was made to load a program with an incorrect format"

Status
Not open for further replies.

em2018

Newbie level 6
Joined
Mar 8, 2018
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
115
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:

"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
 

Re: C# error message "An attempt was made to load a program with an incorrect format"

Hello,

you have to reveal more code if you want somebody can help you.

Regards
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…