Frage

I am using trial VeriFinger SDK. I have added all the supported DLLs from dotNET_Portable folder. I have changed AnyCPU to x64. But I am getting exeption while initializing NDeviceManager object. My code is given below. Can anyone please tell me what I am doing wrong ?

System.TypeInitializationException : The type initializer for "Neurotec.Devices.NDeviceManager" threw an exception. Exception message : The type initializer for "Neurotec.Devices.NDeviceManager" threw an exception. InnerException : Unable to load DLL "NDevices": The specified module could not be found. (Exception from HRESULT: 0x8007007E)

using Neurotec.Devices;

private NDeviceManager _deviceMan;

protected override void OnNavigatedTo(NavigationEventArgs e)
{
    _deviceMan = new NDeviceManager(NDeviceType.FingerScanner, true);
}

private void btnRefreshScannerList_Click(object sender, RoutedEventArgs e)
{
    var Scanners = _deviceMan.Devices;
    //TODO:
}
War es hilfreich?

Lösung

In addition to dotNET_Portable dlls, you also need to add native libraries NDevices.dll, NCore.dll, NMedia.dll & other dependencies from Bin\Win64_x64 (or Bin\Win32_x86, depending on what platform you are targeting). Please refer to picture how this should be done:

adding native binaries to project

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top