Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AuthenticatedLicenseProvider GenerateKey not valid

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
hanshimmler



Joined: 14 Apr 2013
Posts: 5

PostPosted: Sun Apr 14, 2013 12:58 pm    Post subject: AuthenticatedLicenseProvider GenerateKey not valid Reply with quote

Hi,

I am working on a ASP.Net page that allows to generate a license key that can afterwards be validated using ILS authentification server.
The key that gets generated always fail when validated using the AuthenticateKey method of the AuthenticatedLicenseProvider class.
The returned AuthenticatedLicense object from calling AuthenticateKey is always NULL.
Basically I do:

AuthenticatedLicenseProvider _licenseProvider = new AuthenticatedLicenseProvider(LICENSE_PARAMETERS, LICENSE_FILE);

string licensekey = _licenseProvider.GenerateKey("myProductName", 1);

and afterwards
AuthenticatedLicense license = _licenseProvider.AuthenticateKey(licensekey);

as stated license is always NULL.

Any idea what I do wrong ?

Hope someone can help.

BTW: Is there a good example of a ASP.Net app that allows to generate license keys ?

Best regards
Hans-Juergen
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sun Apr 14, 2013 11:49 pm    Post subject: Reply with quote

The LICENSE_PARAMETERS required for generating license keys is different to that required for authenticating the license key. Your ASP.NET application must also have an ILS license installed.

There is an API (Infralution.Licensing.Data) that enables you to add customers, sales and create license keys in the License Tracker database. The "Command Line Key Generator" sample project demonstrates using this.

See the following FAQ for more information:

http://www.infralution.com/phpBB2/viewtopic.php?t=1706
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group