Hello,
I am using LexActivator V2.9.0(C#). I have a question.
In my application, I wanted to be disable retry on network error, so I added the following processing.
status = LexActivator.SetGracePeriodForNetworkError(0);
As a result, my application occurs a error only on a certain machine.
On the machine activated online, The next method executed at application startup will return 1 (LA_FAIL).
status = LexActivator.IsProductActivated();
If I activate online after occurrence of the phenomenon, that day will operate normally. Even if I start the application several times on the day and execute the following process, the method returns 0 normally.
status = LexActivator.IsProductActivated();
However, IsProductActivated method returns 1 again when the application is started for the first time the next day.
As a result of my investigation, the phenomenon occurred when the following processing existed, and no phenomenon occurred unless the following processing existed. There is no other difference in source code.
status = LexActivator.SetGracePeriodForNetworkError (0);
This phenomenon only occurs on a certain machine.
Machine environment is Windows10x64, .NET Framework 4.6.2 and Internet connection is possible. This phenomenon does not occur on other machines of the same environment.
In my application, I wanted to be disable retry on network error, so I want to add the following processing. However, this phenomenon occurs. How can I avoid it?
status = LexActivator.SetGracePeriodForNetworkError (0);
Below is the source code to be executed at application startup.
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);
}