i have trouble with NLicense in c#, when i check license of neurotec in debug mode, and then show error "The Type initializer for Neurotec.Licensing.NLicense Threw an exception bla bla bla : Unable to load DLL NLicensing: The specified module could not be found HResult 0x8007007E"

i have trouble with NLicense in c#, when i check license of neurotec in debug mode, and then show error "The Type initializer for Neurotec.Licensing.NLicense Threw an exception bla bla bla : Unable to load DLL NLicensing: The specified module could not be found HResult 0x8007007E"

Hello,

.Net dlls from the SDK depends on the native dlls in the SDK, i.e. Neurotec.dll depends on the NCore.dll. Your received error means that your application can not find the native dll.There are two solutions for this issue. First one, the fastest and easiest one, is to copy all dlls from the SDK to the output folder of your application.The second way is to add the path to SDK dlls into System environmental variable PATH and restart the computer.

i have trouble with NLicense in c#, when i check license of neurotec in debug mode, and then show error "The Type initializer for Neurotec.Licensing.NLicense Threw an exception bla bla bla : Unable to load DLL NLicensing: The specified module could not be found HResult 0x8007007E"

Hello,

.Net dlls from the SDK depends on the native dlls in the SDK, i.e. Neurotec.dll depends on the NCore.dll. Your received error means that your application can not find the native dll.There are two solutions for this issue. First one, the fastest and easiest one, is to copy all dlls from the SDK to the output folder of your application.The second way is to add the path to SDK dlls into System environmental variable PATH and restart the computer.

Dear sirs, for your information, i have tried the two solutions you sugested to me, but it didn"t work out. Is there any alternative to solve this problem?

i have trouble with NLicense in c#, when i check license of neurotec in debug mode, and then show error "The Type initializer for Neurotec.Licensing.NLicense Threw an exception bla bla bla : Unable to load DLL NLicensing: The specified module could not be found HResult 0x8007007E"

Hello,

.Net dlls from the SDK depends on the native dlls in the SDK, i.e. Neurotec.dll depends on the NCore.dll. Your received error means that your application can not find the native dll.There are two solutions for this issue. First one, the fastest and easiest one, is to copy all dlls from the SDK to the output folder of your application.The second way is to add the path to SDK dlls into System environmental variable PATH and restart the computer.

Dear sirs, for your information, i have tried the two solutions you sugested to me, but it didn"t work out. Is there any alternative to solve this problem?

Hello,

No. You have to provide library (.dll) files for your program. Just copy all dlls from "SDK\Bin\Win32_x86 or Win64_x64 " to your program's working directory.

Error “An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)" is thrown, when the application is trying to load incorrect dlls. i.e. if your application is compiled with configuration “win64_x64” and the application is loading 32 bit dlls.Or i.e. you have compiled the application with “AnyCPU” configuration and you are running the application on 64 bit OS and the application is loading 32 bit dlls.Please check what configuration is used to build your application and if the correct dlls are loaded.

I have tested all the options that can not make it work.I changed from AnyCPU to run in 32 bits put the dlls of my SDK Neurotec_Biometric_10_0_SDK_Trial\Bin\Win32_x86 did not work.I also tested this way:NLicense.Add ("Biometrics.FaceDetection");NLicense.Add ("Biometrics.FaceExtraction");NLicense.Add ("Biometrics.FaceSegmentsDetection");But the error persists.

Dilson wrote:I have tested all the options that can not make it work.I changed from AnyCPU to run in 32 bits put the dlls of my SDK Neurotec_Biometric_10_0_SDK_Trial\Bin\Win32_x86 did not work.I also tested this way:NLicense.Add ("Biometrics.FaceDetection");NLicense.Add ("Biometrics.FaceExtraction");NLicense.Add ("Biometrics.FaceSegmentsDetection");But the error persists.

While trying to run the sample Demo in the trials SDK of Neurotec_Biometric_10_0_SDK_Trial_2018 in SamplesBiometricsCSEnrollmentSampleCS folder. There was already a compiled error before running the sample in the MainForm line 507: LongActionDialog.ShowDialog(this, "Initializing biometric client ...", Task.Run(client.InitializeAsync().AsTask)); which says cannot choose method from method group. Did you intend to invoke the method.

tacis4real wrote:While trying to run the sample Demo in the trials SDK of Neurotec_Biometric_10_0_SDK_Trial_2018 in SamplesBiometricsCSEnrollmentSampleCS folder. There was already a compiled error before running the sample in the MainForm line 507: LongActionDialog.ShowDialog(this, "Initializing biometric client ...", Task.Run(client.InitializeAsync().AsTask)); which says cannot choose method from method group. Did you intend to invoke the method.

Please help

Hello tacis4real,

Strange, that error basically says that you tried to invoke method, but forgot to put parenthesis. My guess it throws that error because of "AsTask" and it is strange because on my side it works. Which Visual Studio you are using? Which .NET framework you are using? Did you modify sample?You should actually locate which part in that line is actually throwing error.

This is first thing I picked from the sample immediately after extraction, no editing of any part of the code. I haven't run the solution yet before I discovered this error. Am using visual studio 2013 Ultimate edition.

At least, I need to run the sample for me to follow the flow for easy integration into my own Application but unfortunately the sample not even coming up because of that compilation error.

This is first thing I picked from the sample immediately after extraction, no editing of any part of the code. I haven't run the solution yet before I discovered this error. Am using visual studio 2013 Ultimate edition.

At least, I need to run the sample for me to follow the flow for easy integration into my own Application but unfortunately the sample not even coming up because of that compilation error.

Help out

Thanks

Hello tacis4real,

Just change that line to "client.InitializeAsync().Wait();", you shouldn't have errors with it.

i have trouble with NLicense in c#, when i check license of neurotec in debug mode, and then show error "The Type initializer for Neurotec.Licensing.NLicense Threw an exception bla bla bla : Unable to load DLL NLicensing: The specified module could not be found HResult 0x8007007E"

First of all, good morning.

I am facing almost the same problem here, and I already tried to resolve via GAC, Strong Name, etc...no good.My error is "Unable to load DLL VFExtractor".

Should I add another reference in the project?These are the DLLs in my project:- Neurotec- Neurotec.biometrics.FPScannerMan- Neurotec.biometrics.Gui.NFView- Neurotec.biometrics.NFRecord- Neurotec.biometrics.VFExtractor- Neurotec.biometrics.VFMatcher- Neurotec.images

i have trouble with NLicense in c#, when i check license of neurotec in debug mode, and then show error "The Type initializer for Neurotec.Licensing.NLicense Threw an exception bla bla bla : Unable to load DLL NLicensing: The specified module could not be found HResult 0x8007007E"

First of all, good morning.

I am facing almost the same problem here, and I already tried to resolve via GAC, Strong Name, etc...no good.My error is "Unable to load DLL VFExtractor".

Should I add another reference in the project?These are the DLLs in my project:- Neurotec- Neurotec.biometrics.FPScannerMan- Neurotec.biometrics.Gui.NFView- Neurotec.biometrics.NFRecord- Neurotec.biometrics.VFExtractor- Neurotec.biometrics.VFMatcher- Neurotec.images