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!