System.DllNotFoundException: 'Unable to load DLL 'libzkfp.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)'

0

I installed ZKtecoFingerprint SDK and I'm trying to run the demo of this SDK but I got this exception!

System.DllNotFoundException: 'Unable to load DLL 'libzkfp.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)'

Exception

References

How can I use the Zketco demo application??

Code :

  private void bnInit_Click(object sender, EventArgs e)
    {
        cmbIdx.Items.Clear();
        int ret = zkfperrdef.ZKFP_ERR_OK;
        if ((ret = zkfp2.Init()) == zkfperrdef.ZKFP_ERR_OK)
        {
            int nCount = zkfp2.GetDeviceCount();
            if (nCount > 0)
            {
                for (int i = 0; i < nCount; i++)
                {
                    cmbIdx.Items.Add(i.ToString());
                }
                cmbIdx.SelectedIndex = 0;
                bnInit.Enabled = false;
                bnFree.Enabled = true;
                bnOpen.Enabled = true;
            }
            else
            {
                zkfp2.Terminate();
                MessageBox.Show("No device connected!");
            }
        }
        else
        {
            MessageBox.Show("Initialize fail, ret=" + ret + " !");
        }
    }

Configuration Target x86

c#
zkteco
asked on Stack Overflow Dec 25, 2020 by csharp_devloper31 • edited Dec 25, 2020 by csharp_devloper31

1 Answer

-1

Many of these, which connect to devices using SDKs, are 32/64bit related. Change your project configuration to x86 (32bit) and check it again.

answered on Stack Overflow Dec 25, 2020 by TheMah

User contributions licensed under CC BY-SA 3.0