After offline activation, an error will result in license check.
Could you tell me why?
This phenomenon occurs only in some people, and the person who gets out has expired trial. People within the deadline will not occur.
The license checking function (ResultType.Expired is returned) is as follows:
public ResultType Verify(LicenseUserSetting setting, string proxy)
{
var status = LexActivator.SetProductFile(m_ProductFilePath);
if (status != LexActivator.LA_OK)
{
throw new InternalLicenseErrorException(status);
}
status = LexActivator.SetVersionGUID(m_VersionGuid, m_Permission);
if (status != LexActivator.LA_OK)
{
throw new InternalLicenseErrorException(status);
}
status = LexActivator.SetUserLock(true);
if (status != LexActivator.LA_OK)
{
throw new InternalLicenseErrorException(status);
}
status = LexActivator.SetDayIntervalForServerCheck(m_LicenseManager.ServerCheckInterval);
if (status != LexActivator.LA_OK)
{
throw new InternalLicenseErrorException(status);
}
if (!string.IsNullOrEmpty(proxy))
{
status = LexActivator.SetNetworkProxy(proxy);
if (status != LexActivator.LA_OK)
{
throw new InternalLicenseErrorException(status);
}
}
status = LexActivator.IsProductActivated();
switch (status)
{
case LexActivator.LA_EXPIRED:
case LexActivator.LA_GP_OVER:
return ResultType.Expired;
case LexActivator.LA_REVOKED:
return ResultType.Revoked;
case LexActivator.LA_OK:
break;
default:
throw new InternalLicenseErrorException(status);
}
status = LexActivator.IsProductGenuine();
switch (status)
{
case LexActivator.LA_OK:
return ResultType.OK;
case LexActivator.LA_EXPIRED:
case LexActivator.LA_GP_OVER:
return ResultType.Expired;
case LexActivator.LA_REVOKED:
return ResultType.Revoked;
default:
throw new InternalLicenseErrorException(status);
}
}