Exception on activation by serial number

General information about Neurotechnology and its software

Exception on activation by serial number

Postby fenrirrm_ » Oct 09, 2018 21:30

Greetings!

I am trying to activate an serial number by using these methods:
Code: Select all
               
string activationIdExtractor = NLicense.GenerateId(licenseExtractor);
string licenseDataExtractor = NLicense.ActivateOnline(activationIdExtractor);

NLicense.Add(licenseDataExtractor);
NLicenseInfo infoE = NLicense.GetLicenseInfoOnline(licenseDataExtractor);


string activationIdMatching = NLicense.GenerateId(licenseMatching);
string licenseDataMatching = NLicense.ActivateOnline(activationIdMatching);

NLicense.Add(licenseDataExtractor);
NLicenseInfo infoM = NLicense.GetLicenseInfoOnline(licenseDataMatching);


Being "licenseExtractor" an string with the "xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx" format.

But when I am going to extract the template from the image, by using:
Code: Select all
NSubject subject = CreateSubjectFromImage(person.Image);
NBiometricClient biometricClient = CreateBiometricClient(MatchType.NtoOne);
biometricClient.CreateTemplate(subject);


The "CreateTemplate" method throws me an "NotActivatedException: Operation is not activated" exception and I do not understand why.
Could I get an enlightenment?
fenrirrm_
 
Posts: 2
Joined: Sep 25, 2018 15:49

Re: Exception on activation by serial number

Postby MartynasV » Oct 10, 2018 10:25

fenrirrm_ wrote:Greetings!

I am trying to activate an serial number by using these methods:
Code: Select all
               
string activationIdExtractor = NLicense.GenerateId(licenseExtractor);
string licenseDataExtractor = NLicense.ActivateOnline(activationIdExtractor);

NLicense.Add(licenseDataExtractor);
NLicenseInfo infoE = NLicense.GetLicenseInfoOnline(licenseDataExtractor);


string activationIdMatching = NLicense.GenerateId(licenseMatching);
string licenseDataMatching = NLicense.ActivateOnline(activationIdMatching);

NLicense.Add(licenseDataExtractor);
NLicenseInfo infoM = NLicense.GetLicenseInfoOnline(licenseDataMatching);


Being "licenseExtractor" an string with the "xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx" format.

But when I am going to extract the template from the image, by using:
Code: Select all
NSubject subject = CreateSubjectFromImage(person.Image);
NBiometricClient biometricClient = CreateBiometricClient(MatchType.NtoOne);
biometricClient.CreateTemplate(subject);


The "CreateTemplate" method throws me an "NotActivatedException: Operation is not activated" exception and I do not understand why.
Could I get an enlightenment?

Hello,

You have to obtain licenses at the start of program, as it is done in ALL our examples, see:
Code: Select all
var obtained = NLicense.Obtain("/local", 5000, "FaceExtractor");

After successful obtain, you will be able to use those unlocked SDK features.
Martynas V
Neurotechnology
MartynasV
Neurotechnology
 
Posts: 397
Joined: Feb 27, 2015 11:24
Location: Vilnius, Lithuania


Return to Public

Who is online

Users browsing this forum: No registered users and 2 guests

cron