Hello,
I am using LexActivator V2.9.0. I have a question.
My application extends the license expiration date every year.
Therefore, if the user purchases an extension of the license expiration date, I will extend “License Validity” in cryptlex.com.
After that, the user presses the update button of the application. By activating again, the application synchronizes with the server and extends the license expiration date. “activating again” means to call LexActivator.SetProductKey.
The reason for doing this is that the application does not automatically synchronize with the server at startup, and the license expires.
It is cumbersome for the user to press the application button for extending the license expiration date.
I want to extend the license’s expiration date by automatically synchronizing with the server at application startup. My application runs the following program at startup, but it does not synchronize with the server every other day.
(I execute “LexActivator.SetDayIntervalForServerCheck (1)”)
How can I solve this problem?
var status = LexActivator.SetProductFile(_ProductFilePath);
if (status != LexActivator.LA_OK)
{
throw new Exception(status);
}
status = LexActivator.SetVersionGUID(_VersionGuid, LexActivator.PermissionFlags.LA_USER);
if (status != LexActivator.LA_OK)
{
throw new Exception(status);
}
status = LexActivator.SetUserLock(true);
if (status != LexActivator.LA_OK)
{
throw new Exception(status);
}
status = LexActivator.SetDayIntervalForServerCheck(1);
if (status != LexActivator.LA_OK)
{
throw new Exception(status);
}
status = LexActivator.SetGracePeriodForNetworkError(0);
if (status != LexActivator.LA_OK)
{
throw new Exception(status);
}
status = LexActivator.IsProductActivated();
if (status != LexActivator.LA_OK)
{
throw new Exception(status);
}
status = LexActivator.IsProductGenuine();
if (status != LexActivator.LA_OK)
{
throw new Exception(status);
}