Ordinal 129 could not be located in DLL (loadlibrary | peak PCAN passthru | winforms application)

Soul 0 Reputation points
2025-01-17T06:04:13.94+00:00

error Hello all,

I'm facing an issue with latest version of Peak PCAN driver, when I try to load the DLL of the latest driver in my winforms project the above error is shown. The catch is using the same loadlibrary function in any other project (winforms/wpf/maui) and the DLL loads successfully. I'm unable to understand how using the exact same code in every project is working except one.

Peak is a German company that develops Passthru devices that helps applications connect with microcontrollers using different protocols such as CAN etc. I'm using the hardware called PCAN-USB (IPEH-002021).

Driver versions I'm trying to work with are-User's image

My application is built using .NET Framework 4.8, it is used for analysis, diagnostics of electric vehicles using CAN protocol. We've been maintaining the app from past 5-6 years, I've tried to contact PEAK company, but they end up telling it's an issue with LoadLibrary function of Windows not their driver file because the same driver is working with other projects.

Please let me know in case I missed to provide any information, posting here for the very first time.

Thank you.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,918 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,972 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,359 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.