How to check if License is valid

Posted by: jmmungermercier on 18 November 2024, 9:32 am EST

    • Post Options:
    • Link

    Posted 18 November 2024, 9:32 am EST

    Hi, we recently had an issue where a build agent failed to register the license for active report leading for us to generate a lot of report with the Activation watermark on them.

    Since we don’t want this behavior to happen again, we’re trying to make sure that the product is always activated on the production environment.

    I’ve searched but did not find any easy way to check if the product is activated.

    Hopefully someone knows the answer.

  • Posted 19 November 2024, 1:41 am EST

    Hi JM,

    We would suggest that you go through the attached documentation link regarding licensing your Build Agents/Pipelines with ActiveReports 18 and also to check whether the license is activated or not: Licensing Build Agents/Pipelines using Command Line

    We hope this helps!

  • Posted 19 November 2024, 10:50 am EST

    It does not answer my question. My goal is not to activate the product.

    My goal is to make sure that my product is activated in production.

    At startup I want to do something like

    If Not ActiveReport.IsCorrectlyLicenced

    THROW LicenceIsRequired

    My question is how do I programmatically check for the activation at runtime

  • Posted 20 November 2024, 6:06 am EST

    Hi JM,

    To get the status of your license you’ll need to execute the command

    C:\ProgramData\GrapeCity\gclm>gclm "463c4179-288c-48fe-a4df-3b609586667d" > "info.txt"
    in the command line, this will generate a ‘info.txt’ file with the 'License Status.

    If the license is successfully activated it will read ‘Product License Activated’, at the startup you can check the ‘info.txt’ file for this string, if not available then ActiveReports either does not have any license in Production or is in Evaluation mode.

    You can learn more about the same here: Check the License Status.

    Please find attached a sample implementing the same.

    Regards,

    Anand

    CheckLicense.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels