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.

Need extra support?

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

Learn More

Forum Channels