License issue active reports 17

Posted by: nmengesha on 13 February 2024, 5:00 am EST

    • Post Options:
    • Link

    Posted 13 February 2024, 5:00 am EST - Updated 14 February 2024, 1:19 am EST

    I am getting error

    This application will be terminated because it was built without a license for SectionReport. I have license. My application calls web service which creates pdf reports. I am trying licensing Compiled Code. I have followed the steps, it is not working

  • Posted 13 February 2024, 11:00 pm EST

    Hi Netsa,

    You are on the right track to license a class library project you’ll need to create a ‘.gclicx’ file and place it within your class library project with its ‘Build Action’ set to Embedded Resource after which you’ll need to rebuild your class library.

    To learn about licensing a class library project please refer to Licensing Compiled Code.

    Please make sure you specify your ‘Entry Assembly Name’ as the Assembly Name of your end application i.e. the client application it could be a web app or a desktop application.

    And the ‘Calling Assembly Name’ will be the assembly name of your WebService.

    So the command would look like:

    C:\ProgramData\GrapeCity\gclm>gclm.exe "742a5cf8-2204-4873-9dc9-ff56d67411bd" -lc ./.gclicx "[WebApp Name].[Web Service Name].dll"
    

    Also, please make sure you delete the ‘licenses.licx’ file for your class library as it is licensed using the ‘.gclicx’ file.

    However, if the issue persists please try sharing a stripped-down sample of your application that replicates the issue so we can test the same on our end and further investigate the issue.

    Regards,

    Anand

  • Posted 14 February 2024, 2:10 am EST - Updated 14 February 2024, 2:17 am EST

    Hi Anand,

    Thank you for responding so quickly. Here is the structure of my application. I have Test window application, which calls Web service, the web service has a reference for Reporting project.

    Window application => web service => Reporting project , where the active reports are.

    the test application on button click

    -Calls Web service to Generate Report

    -Web service uses the Reporting project to create pdf reports.

    To make my application work, generated test1.gclicx file using command

    1: gclm.exe “742a5cf8-2204-4873-9dc9-ff56d67411bd” -lc ./test1.gclicx “webService.Reporting.dll”

    file test1 was generated with some text, included it in the Reporting project, it didn’t work

    so generated another test2.gclicx file

    2: gclm.exe “742a5cf8-2204-4873-9dc9-ff56d67411bd” -lc ./test2.gclicx “TestApplication.webService.dll”

    file test2 was generated with some text, included it in the Reporting project, it didn’t work

    so generated another test3.gclicx file

    3: gclm.exe “742a5cf8-2204-4873-9dc9-ff56d67411bd” -lc ./test3.gclicx “TestApplication.webService.Reporting.dll”

    file test3 was generated with some text, included it in the Reporting project, it didn’t work.

    I have followed the exact steps for Licensing Compiled Code.

    Thanks

    Netsa

  • Posted 14 February 2024, 6:15 pm EST

    Hi Netsa,

    As your project structure is like this:

    Window App → Web Service → Reporting Project (Which has ActiveReports references)

    Your ‘Entry Assembly Name’ would be the assembly name for your ‘Window App’ and the ‘Calling Assembly Name’ would be the assembly name for your ‘Reporting Project’.

    So to generate your ‘.gclicx’ file your command should look like:

    C:\ProgramData\GrapeCity\gclm>gclm.exe "742a5cf8-2204-4873-9dc9-ff56d67411bd" -lc ./.gclicx "TestApplication.Reporting.dll"
    

    Assuming ‘TestApplication’ is the assembly name for your Windows Application and ‘Reporting’ is the assembly name for your Reporting Project.

    After generating the ‘.gclicx’ file copy it into your class library project and set its ‘Build Action’ property to ‘Embedded Resource’. Now ‘Clean’ and ‘Rebuild’ your class library.

    Note: You’ll also need to rebuild your Web Service/Test Application to use the updated Reporting.dll in the projects.

    Also, please make sure you delete the ‘licenses.licx’ file for your class library as it is licensed using the ‘.gclicx’ file.

    However, if the issue persists please try sharing a stripped-down sample of your application that replicates the issue so we can test the same on our end and further investigate the issue.

    Regards,

    Anand

  • Posted 16 February 2024, 6:08 am EST

    Hi Anand,

    I have made it work. Thanks for your help.

    Thanks

    Netsa

Need extra support?

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

Learn More

Forum Channels