Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

INFO: Testing license codes during development

 
Subscribe to the RSS feed for this forum  Forum Index -> CryptoLicensing For .Net
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Fri May 15, 2009 4:32 am    Post subject: INFO: Testing license codes during development

The CryptoLicense.Load method loads a license code from the specified storage medium (registry or file). When testing a new license (maybe with different settings), you will need to overwrite the old license with the new one.

When storage medium is a file:

Simply replace the old license code in the file with the new code and save the file. The next time the CryptoLicensing.Load method is called, the new license code will be loaded and used. An easier way is to explicitly set the CryptoLicense.LicenseCode property as described below.

When storage medium is the registry :

For the registry, its not possible to overwrite the value since the license code is stored in binary form while the you will have the code in string form. In this case, explicitly set the CryptoLicense.LicenseCode property as described below.

Explicitly setting the CryptoLicense.LicenseCode property
In this case, you must explicitly set the new license code using the CryptoLicense.LicenseCode property to ensure that the exact code you want to test will get used. To integrate this in the license validation code of your software, simply set the CryptoLicense.LicenseCode property after the call to the CryptoLicense.Load method. In this way, irrespective of whatever license code is loaded by the CryptoLicense.Load method, the license code set via the CryptoLicense.LicenseCode property will be the one used and validated. When you are finished testing, simple remove or comment the line with the CryptoLicense.LicenseCode property.
Back to top
Display posts from previous:   
Forum Index -> CryptoLicensing For .Net All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group