Trial Version - License Issue with PageReport

Posted by: jeffrey.hughes on 24 June 2020, 11:42 pm EST

    • Post Options:
    • Link

    Posted 24 June 2020, 11:42 pm EST

    We are new to AR and evaluating ActiveReports 14, using the trial version, and receive an error when attempting to run .NET Core unit tests against an assembly using AR14.

    The error is: System.ComponentModel.LicenseException : This application will be terminated because it was built without a license for PageReport.

    I see a .gclicx file generated in the obj\Debug\netcoreapp3.1 folder, but there is no apparent file copied to the bin\debug\netcoreapp3.1 folder. I attempted to copy the gclicx file to bin\debug\netcoreapp3.1 and still received the same error.

    I see messages in the forum regarding a licenses.licx file, but I have no such file in my project. Does this get generated automatically?

    Since we are completely new to AR, if you could elaborate on a solution, we’d appreciate it.

  • Posted 26 June 2020, 12:33 am EST

    Hello,

    Sorry for the inconvenience caused to you.

    I have forwarded your issue to the development team and will inform you once I get any information from them.

    Thanks,

    Mohit

  • Posted 26 June 2020, 12:57 am EST

    Hello,

    I have provided the solution in the following case:

    https://supportone.componentone.com/casedetail/443219

    Please use the Forum credential to login to above case.

    Thanks,

    Mohit

  • Posted 18 January 2021, 7:24 pm EST

    Hello Mohitg,

    We are facing the same issue explained in this topic. We get a “This application will be terminated because it was built without a license for SectionReport.” message when we try to execute the UnitTests. Please, could I access the solution? Thanks,

    Javier.

  • Posted 19 January 2021, 3:02 pm EST

    Hello,

    Please refer to the following link:

    https://www.grapecity.com/activereportsnet/docs/v15/online/licensing-compiled-code.html

    If you are using the trial version, then it will not work as trial license popup will fail the unit test.

    Thanks,

    Mohit

  • Posted 20 January 2021, 10:07 pm EST

    Hello Mohit,

    We already bought a license and the same error still appears. I follow the steps mentioned in the link you posted:

    • Generate .gclicx file
    • Move it to the root of the project with the Unit Tests
    • Change its build action to “Embedded Resource”
    • Rebuild solution

    Could you please send us a solution to the issue?

    Thanks.

  • Posted 21 January 2021, 3:21 pm EST

    Hello,

    Can you try the following steps:

    Run cmd as administrator

    Switch to C:\ProgramData\GrapeCity\gclm folder

    Enter the following: gclm.exe “de456e2c-d2e3-4246-94e8-9648bbd6fbf0” -lc ./.gclicx [entry assembly name].[calling assembly name].dll"

    Check that .gclicx file is generated in C:\ProgramData\GrapeCity\gclm folder.

    Open the project in which AR assemblies is used

    Add .gclicx file to the above project and make it embedded.

    Fix references, build and run MainExeceutable project

    For example:

    Run the following command:

    gclm.exe “de456e2c-d2e3-4246-94e8-9648bbd6fbf0” -lc “G:\Projects\ActiveReports\QA-Automation\ExportTests\src\netcore.gclicx” “testhost.x86QAExportTests.dll”

    QAExportTests - name of testing dll

    testhost.x86 - nunit host

    Add the “.gclicx” file as Embedded resource to QAExportTests project.

    Hope it helps.

    Use the following ID in case of AR15:

    e88c1aa3-2781-44bb-b639-765c9ef6d15c

    Thanks,

    Mohit

  • Posted 21 January 2021, 9:26 pm EST

    Hi Mohit,

    Thanks for your answer, but unfortunately we get the same error.

    I will explain the structure of the projects:

    • Our main project is called like → Main.Main.Main
    • The tests project is called like → Test.Test.Test

    So, if I understand correctly, the command should look like this:

    gclm.exe “e88c1aa3-2781-44bb-b639-765c9ef6d15c” -lc ./.gclicx “Main.Main.Main.Test.Test.Test.dll”

    I get the “.gclicx” file and I move to the Test.Test.Test project. I Change it to “Embedded resource” and rebuild the solution.

    Could you please confirm if the steps are correct?

    Kind regards,

    Javier.

  • Posted 24 January 2021, 3:45 pm EST

    Hello,

    Pleas use the following command:

    gclm.exe “e88c1aa3-2781-44bb-b639-765c9ef6d15c” -lc ./.gclicx “Test.Test.Test.Main.Main.Main.dll”

    I get the “.gclicx” file and I move to the Test.Test.Test project.

    Please move to the “.gclicx” file to “Main.Main.Main” project instead of the “Test.Test.Test”

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels