License issue with ActiveReports 17

Posted by: e.rottensteiner on 21 August 2025, 4:33 am EST

  • Posted 21 August 2025, 4:33 am EST

    I created a .NET 4.8 project (console application) that uses a SectionReport. When I use the “Report.Run()” command, I get the following error message: This application will be terminated because it was built without a license for SectionReport. This is the code:

    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Xml;
    
    namespace ActiveReport4._8
    {
        internal class Program
        {
            static void Main(string[] args)
            {
                SectionReport rpt = new SectionReport();
    
                XmlReader xmlReader = XmlReader.Create(@"D:\tmp\AR\vsdruck_neu.rpx");
                rpt.LoadLayout(xmlReader);
    
                rpt.UserData = @"D:\tmp\AR\test.txt";
    
                rpt.Run();
    
                rpt.Document.Save(@"D:\tmp\AR\output.rdf");
            }
    
    }
    

    I also started glcm.exe. ActiveReports 17 is licensed.

    Could you please help me?

    Note: In a class library, I get a different error message: File or assembly “GrapeCity.ActiveReports” or a dependency could not be found.

    If you need further information, please let me know. Thanks!

  • Posted 22 August 2025, 1:03 am EST

    Hello,

    The issue you are getting is because you have licensed the machine by activating the key but your project is not licensed yet. To license you project, you need to add the Licenses.licx file with the following entries in it and keep it’s build action to embed resource:

    GrapeCity.ActiveReports.SectionReport, Grapecity.ActiveReports

    To learn more about this please go through the following link:

    https://developer.mescius.com/activereportsnet/docs/versions/v17/online/licensing-a-project.html

    To license the class library, you can check the process given in the following doc link:

    https://developer.mescius.com/activereportsnet/docs/versions/v17/online/licensing-compiled-code.html

    If you still face any issue or need any other help, please share your stripped-down sample replicating the issue so that we can assist you further accordingly.

    Regards,

    Prabhat Sharma.

  • Posted 23 October 2025, 4:29 am EST

    Hi again,

    Thanks for your help, but I still get the ‘File or assembly “GrapeCity.ActiveReports” or a dependency could not be found.’ error in our class library! A .gclicx file was generated, added to the application as embedded resource und I added the “DisableGclm” Line to the csproj file…but still its not working.

    Or is this another issue we have?

    Best Regards

  • Posted 24 October 2025, 1:50 am EST - Updated 24 October 2025, 1:59 am EST

    Hello,

    Apologies for the inconvenience caused.

    To further investigate this issue, we will be needing the more details about your application so we have created a support case on the given link, please provide the details so that we can assist you further resolve this issue.

    https://www.mescius.eu/my-account/my-support/case/b301c0d0-9db0-f011-bbd2-002248d461ef

    Regards,

    Prabhat Sharma.

Need extra support?

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

Learn More

Forum Channels