i4nnet wrote:anyone can help me?
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"
vaidasz wrote:i4nnet wrote:anyone can help me?
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.
i4nnet wrote:vaidasz wrote:i4nnet wrote:anyone can help me?
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?
Dilson wrote:I found the error below already did the above process and it did not work.
The type initializer of "Neurotec.Licensing.NLicense" threw an exception. in Neurotec.Licensing.NLicense.ObtainComponents(String address, Int32 port, String components)
Below part of code:
string retorno = "";
int score = -1;
try
{
// Obtain license
if (!NLicense.ObtainComponents("/local", 5000, Components2))
{
throw new ApplicationException(string.Format("Could not obtain licenses for components: {0}", Components2));
}
using (var biometricClient = new NBiometricClient())
// Create subjects with face object
using (NSubject referenceSubject = CreateSubject(args[0], args[0]))
using (NSubject candidateSubject = CreateSubject(args[1], args[1]))
{
// Set matching threshold
biometricClient.MatchingThreshold = 48;
// Set matching speed
biometricClient.FacesMatchingSpeed = NMatchingSpeed.Low;
// Verify subjects
NBiometricStatus status = biometricClient.Verify(referenceSubject, candidateSubject);
if (status == NBiometricStatus.Ok || status == NBiometricStatus.MatchNotFound)
{
score = referenceSubject.MatchingResults[0].Score;
//Console.Write("image scored {0}, verification.. ", score);
//Console.WriteLine(status == NBiometricStatus.Ok ? "succeeded" : "failed");
}
else
{
//Console.Write("Verification failed. Status: {0}", status);
return -1;
}
}
}
catch (Exception ex)
{
//retorno = ex.Message;
retorno = ex.Message + ex.StackTrace;
//return TutorialUtils.PrintException(ex);
return -1;
}
return score;
Dilson wrote:Hi,
Follows the result of the InnerException:
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
em Neurotec.Licensing.NLicense.NLicenseTypeOf(HNObject& hValue)
em Neurotec.NTypeReg..ctor(GetObjectPlain typeOf, Type type)
em Neurotec.NTypeMap.Add(GetObjectPlain typeOf, Type type, Type[] relatedTypes)
em Neurotec.Licensing.NLicense..cctor()
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.
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
tacis4real wrote:Hello MartynasV,
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
tacis4real wrote:Same thing man. Don't know why this error. No modification in your code at all.
tacis4real wrote:Still getting same compilation error
Revision Number is: 174364
Thanks
tacis4real wrote:i have tried "client.Initialize();" still not working, and I have sent the SDK Revision Number you requested for.
Revision Number is: 174364
tacis4real wrote:So can I get version that can work with visual studio 2013.
Thanks
LongActionDialog.ShowDialog(this, "Initializing biometric client ...", client.InitializeAsync().AsTask());
tacis4real wrote:Thanks MartynasV,
It works now, but inside this "EnrollmentSampleCS" am trying to run has no Verification functionalities. How do I verify the FingerPrint Templates captured for later use.
i4nnet wrote:anyone can help me?
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"
GISoft wrote:i4nnet wrote:anyone can help me?
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
Besides this I already added the following DLLs in the BIN"s project folder:
CaptureSDK.dll, VFExtractor.dll, VFMatcher.dll, FPScannerMan.dll, FPScannerManCom.dll, FPSmmCyte.dll, FPSmmFutronic.dll, FPSmmUareU.dll, mscorlib.dll
Could you guys please help me?
I am stuck in this problem for the past two days.
Users browsing this forum: No registered users and 2 guests