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.

Developer technologies | Windows Forms
Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
{count} votes

Your answer

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