HaspDotNetDllBroken错误 [英] HaspDotNetDllBroken error

查看:3144
本文介绍了HaspDotNetDllBroken错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用SafeNet的哨兵关键,我已经创建了用于登录的Web服务,但是当我运行它的第一次,它抛出一个错误HASPDotNetDllBroken但如果我运行它的第二次或以后连续运行正常。
我使用下列DLL:


  • apidsp_windows.dll

  • hasp_net_windows.dll

和我的web服务是:

  [的WebMethod]
公共字符串登录()
{
    HaspFeature功能= HaspFeature.Default;    串厂商code =AZ ........      搭扣搭扣=新的HASP(功能);    HaspStatus状态= hasp.Login(供应商code);    如果(HaspStatus.StatusOk!=状态)
    {
        回报(登录失败,状态+ status.ToString());
    }
    其他
    {
        回报(登录成功,状态为+ status.ToString());
    }
}


解决方案

从DLL的你提到看来你的web服务是32位的。在这种情况下,你必须把apidsp_windows.dll和hasp_windows_.dll在32位机和64位机Syswow64资料目录下的System32目录中。是你的数字厂商ID,或演示,如果你在评估模式下运行。

我希望帮助。

I am using Safenet Sentinel key, I have created a webservice for login but when i run it the first time it throws an error HASPDotNetDllBroken but runs fine if i run it the second time or consecutively after that. I am using the following dlls:

  • apidsp_windows.dll
  • hasp_net_windows.dll

and my webservice is:

[WebMethod]
public string Log()
{
    HaspFeature feature = HaspFeature.Default;

    string vendorCode="Az........";

      Hasp hasp = new Hasp(feature);

    HaspStatus status = hasp.Login(vendorCode);

    if (HaspStatus.StatusOk != status)
    {
        return("Login Failed with status "+status.ToString());
    }
    else
    {
        return ("Login Successful with status "+status.ToString());
    }
}

解决方案

From the dll's you mention it seems your webservice is 32-bit. In that case you have to put the apidsp_windows.dll and the hasp_windows_.dll in the System32 directory on 32-bit machines and in the SysWOW64 directory on 64-bit machines. is your numeric vendorid, or demo if you're running in evaluation mode.

I hope that helps.

这篇关于HaspDotNetDllBroken错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆