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 

generate key problem

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



Joined: 03 Apr 2007
Posts: 1

PostPosted: Tue Apr 03, 2007 7:00 pm    Post subject: generate key problem Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Apr 03, 2007 10:55 pm    Post subject: Reply with quote

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
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