Periodic Key Validation (offline) Most Viewed Article Created March 24, 2015 Author Artem Category Core Licensing Functionality Comments 5 We have moved this example here. About The Author Artem Most Helpful User I am the lead developer and founder of Serial Key Manager! Rate This Article Helpful Not Helpful (132 out of 216 people found this article helpful) Related Articles Adding and Removing Features 49 Extend License 43 Key Deactivation 24 Optional Field 31 Key Activation and Validation 65 Trial Activation 121 5 Comments Scott Barber 4 years ago Hi there, Just a quick question with this method an example sample code. Would this require use to store the serial key? In order to re-authorise with the server after a 30 day period? I.e. that serial key isn’t able to extracted from their local key (if it is present)? What I am meaning to say is: Day 30 ticks over and the first offline activation fails – how do we retrieve the serial key the user originally registered with to be able to re-activate online. Can we do this without needing to prompt the user? Thanks. Artem 4 years ago Hi @Scott, Thank your for your question. KeyInformation field does not contain a “KeyString” property. I will add it today/tomorrow and let you know. Once this is done, this will be possible. In meantime, you can store the key in the NewKey field. Edit: it will probably be done sometime this week. Artem 4 years ago Finally, it works! You can achieve this by adding the following code snippet: string key = ""; if (keyInfo.IsValid()) key = keyInfo.Key; // the license key is stored in the activation file. else key = "MJAWL-ITPVZ-LKGAN-DLJDN"; // if we are here, ask the user about the key 12345 string key = "";if (keyInfo.IsValid()) key = keyInfo.Key; // the license key is stored in the activation file.else key = "MJAWL-ITPVZ-LKGAN-DLJDN"; // if we are here, ask the user about the key In this case, users won’t need to retype the key once 30 days have passed. Note, this requires the newest version of SKGL Extension, from 3.0.1 and above. jusvu 3 years ago Hi! This offline validation example seems to be for v2 API. I tested this on v3 API and it says: KeyInformation’ does not contain a definition for ‘LoadFromFile’ Could it be possible to get an example for the same functionality in v3 API? Artem 3 years ago Hi! I’m working on it. In meantime, I would recommend to try to replace KeyInformation with LicenseKey class http://api.serialkeymanager.com/html/T_SKM_V3_LicenseKey.htm. There’s an example available at https://help.skmapp.com/#insert-code, but it’s in VB.NET. Leave A Comment? × Cancel Reply Save my name, email, and website in this browser for the next time I comment. Notify me of new posts by email.