View previous topic :: View next topic |
Author |
Message |
hanshimmler
Joined: 14 Apr 2013 Posts: 5
|
Posted: Sun Apr 14, 2013 12:58 pm Post subject: AuthenticatedLicenseProvider GenerateKey not valid |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sun Apr 14, 2013 11:49 pm Post subject: |
|
|
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 |
|
|
|