PCAN-UDS BadImageFormatException

A free API for the communication with control devices according to UDS (ISO 14229-1)
Locked
ezincircioglu
Posts: 2
Joined: Wed 31. Jan 2018, 08:34

PCAN-UDS BadImageFormatException

Post by ezincircioglu » Wed 31. Jan 2018, 08:47

Hello,

I have been struggling a problem with UDS and TP APIs. No matter what I did the program was succesfully built however it throws System.BadImageFormatException error. I tried running the program in x86 x64. Changed .net framework targets. Clean install of .net frameworks and visual redistrutables.

Any ideas?

Thanks!

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: PCAN-UDS BadImageFormatException

Post by K.Wagner » Wed 31. Jan 2018, 09:36

Hello,

the exception hints indeed to a platform mixing problem. Please check that the DLLs and your exe are for the same platform and lie in the same folder. You need the PCANBasic.dll, PCAN-ISO-TP.dll, and PUDS.dll. In order to see if those are the right ones for your platform please check the properties of each dll:
Properties of the PUDS.dll file
Properties of the PUDS.dll file
PUDS_Details.PNG (18.29 KiB) Viewed 4021 times
Best regards,
Keneth

ezincircioglu
Posts: 2
Joined: Wed 31. Jan 2018, 08:34

Re: PCAN-UDS BadImageFormatException

Post by ezincircioglu » Wed 31. Jan 2018, 10:21

Hello,

Putting all DLLs in the same folder solved the problem.

Thanks a lot!

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: PCAN-UDS BadImageFormatException

Post by PEAK-Support » Wed 31. Jan 2018, 13:12

Thread closed
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Locked