I have been using HASP 5.0 in my .Net 4.0 (VS2010, Win 7) application with no problems.
I am adding some new functionality and am trying to create unit tests for it. I am not able to run code from the test project that logs into the hasp license. After logging in with vendor code, I get HaspStatus.HaspDotNetDllBroken {652}. The same code does run OK from the main project.
I copied the following files:
apidsp_windows.dll
apidsp_windows_x64.dll
hasp_net_windows_x64.dll
hasp_windows_NNNNN.dll (my client DLL)
hasp_windows_x64_114204.dll
into the test execution directory, and added a reference to hasp_net_windows.dll into the test project.
I also tried to have the problematic code in the test function (not the main code base) but have the same problem.
Any ideas