View previous topic :: View next topic |
Author |
Message |
gusse.net
Joined: 03 Apr 2007 Posts: 1
|
Posted: Tue Apr 03, 2007 7:00 pm Post subject: generate key problem |
|
|
I want to create my own license tracker. When I call the generate key it fails with the error that only test password can be used.
EncryptedLicenseProvider provider = new EncryptedLicenseProvider();
provider.GenerateKey(7, _license.Product.Password, "", true, 1);
in the doc it say
If there is no installed license for the Infralution Licensing System then the only allowed password is "TEST" and the only allowed serial numbers are 1 or 0. To use the licensed version of this method ensure that the file Infralution.Licensing.EncryptedLicenseProvider.lic exists in the same directory as the Infralution.Licensing.dll and contains a valid license key for the Licensing System.
but i have copied the file to file same folder. the same folder where the app are instaled and the dll file is..
what to do, can i load tlic file |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Apr 03, 2007 10:55 pm Post subject: |
|
|
The ILS installer installs the Infralution.Licensing DLL in the Global Assembly Cache. The DLL in the GAC is the one that is loaded by the .NET runtime. In .NET1.1 the GAC maintained a codebase link to the original (non-GAC) file. This allowed ILS to locate the associated license file next to the original Infralution.Licensing.dll file (under the Infralution Licensing bin directory). Unfortunately this changed under .NET 2.0 and the original codebase is no longer provided for files in the GAC. This means that you would actually have to copy the licensing file to the (hidden) GAC directory containing the Infralution.Licensing.dll. While this is possible (using a command line prompt) it is not easy.
The much easier solution, since you have source code, is to include the EncryptedLicenseProvider and EncryptedLicense classes directly in your application project. The source code uses a #if #endif block to exclude the code that does the licensing check - so you won't even require the lic file at all. _________________ Infralution Support |
|
Back to top |
|
|
|