Hi support.
We have been using WmsServer for a few years now and for “reasons” we are still using v10.6.1.
We deploy our software in offline environments, and we “license” the app at install time, generating the license file from an MSI install via cmd line.
Recently we have encountered a scenario where, in some machines, the installation of our product is producing a thinkGeo license file which seems to be invalid.
To be specific: the lic file is created, and it has similar contents when compared to other machines “which work” (string with some 3700+ chars).
Still, these problematic machines produce white tiles with the waterMark “not license for runtime”
The creation of the lic file returns no errors.
Looking through the docos just now, I same across an API to check the license status
From a console App I am calling all methods in that API now and even in “working systems” the APi returns “None” as in the output below:
C:\Users\Administrator\Desktop\Tool\net80>LicenseStatusValidator.exe
Hello, World!
GetCoreLicenseStatus: 'None'
GetWinformsLicenseStatus: 'None'
GetWpfLicenseStatus: 'None'
GetBlazorLicenseStatus: 'None'
GetBlazorServerLicenseStatus: 'None'
GetWebApiLicenseStatus: 'None'
GetWebApiServerLicenseStatus: 'None'
GetiOSLicenseStatus: 'None'
GetAndroidLicenseStatus: 'None'
GetXamarinFormsLicenseStatus: 'None'
C:\Users\Administrator\Desktop\Tool\net80>
We are seeking help to understand 2 things:
-
What could be going wrong when we create the license file? In one of the broken systems we ended up installing an old .NET version (4.6.2) and after that the lic file seems to be generated with contents which do not produce the watermark. If a missing framework was the issue I’d expect an exception being thrown but instead I still get a file with some 3700+ chars which I cannot tell if it is “good” or “bad”.
-
Why are we always getting
LicenseStatus: 'None'
even from systems which are working as intended? I must be missing something obvious.This is the line calling the API to get the status:
Console.WriteLine($"GetCoreLicenseStatus: '{ThinkGeo.Core.ThinkGeoProductLicense.GetCoreLicenseStatus()}'");
Thanks for your help,
Ed.