Reputation: 1
Since my solution should be buildable for AnyCPU I had to choose the right Hasp DLL during runtime. This works quite nice with the proxy pattern. When I use the 32bit hasp_net_windows.dll everything works fine and I am able to login to the dongle successfully.
But while using the x64 DLL the hasp.Login(...) returns NoApiDylib. Seems like this is a problem regarding the HASP DLL or the communication to the USB Dongle. But I am not able to narrow it down.
Have you any ideas? Thanks in advance!
Upvotes: 0
Views: 2021
Reputation: 1
Please check that in your directory present those files:
1. hasp_windows_XXXXX.dll
2. hasp_windows_x64_XXXXX.dll
3. apidsp_windows.dll
4. apidsp_windows_x64.dll
5. hasp_net_windows.dll
Upvotes: 0