Azure DevOps Pipelines Hosted Build Agent Licensing Question

Posted by: mchristensen on 3 February 2020, 6:13 am EST

  • Posted 3 February 2020, 6:13 am EST

    Our CI/CD platform is Azure DevOps Pipelines with hosted agents. How do we compile an AR14 dependent assembly in Azure DevOps if we cannot install Active Reports on the cloud build agent? In previous versions of Active Reports, we used the ApplicationLicenseGenerator.exe to generate a satellite license assembly. I do not see an option for this in the latest version.
  • Replied 3 February 2020, 6:29 pm EST

    Hello,

    Please use the following steps:
    1.Build the project using the licensed components on a developer machine which is licensed for development with all the components referenced in the project (this creates the .licenses resource).
    2.Find the licenses.licx in the Solution Explorer window. You can use the Show All Files toolbar button to see it or expand the Properties folder.
    3.Right-click the licenses.licx in the Solution Explorer window, and then select Exclude From Project.
    4.Use Windows Explorer (outside Visual Studio) to find the .licenses file in the obj\{configuration} folder (obj\Debug or obj\Release). The file should have the name {target}.{ext}.licenses (for example: project1.exe.licenses).
    5.Copy that file to the project folder and rename it to remove the target name (rename it from {target}.{ext}.licenses to {ext}.licenses). For example: project1.exe.licenses to exe.licenses.
    6.In the Visual Studio Solution Explorer window, find the {ext}.licenses (you might need to refresh the window), then right-click the file and select Include In Project.
    7.Change the Build Action for the {ext}.licenses from Content to Embedded Resource.
    8.The project can now be built without requiring a developer license on the machine, since the license has already been built and linked into the project.

    Thanks,
    Mohit
  • Replied 11 February 2020, 10:06 am EST

    Hi Mohit,

    Does this work for version 10.1.5602?

    The reasn I ask is that I am moving some piplelines from TFS server to Devops and the build fails with the following:

    #[error]My Project\licenses.licx(2,0): Error LC0004: Exception occurred creating type 'GrapeCity.ActiveReports.Viewer.Win.Viewer, GrapeCity.ActiveReports.Viewer.Win.v10, Version=10.0.5602.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff' System.ComponentModel.LicenseException: License cannot be confirmed. Error code: 01-001


    This works on the TFS server.

    Is the way around this the method you describe above?
  • Replied 11 February 2020, 10:07 am EST

    Hi Mohit,

    Does this work for version 10.1.5602?

    The reasn I ask is that I am moving some piplelines from TFS server to Devops and the build fails with the following:

    #[error]My Project\licenses.licx(2,0): Error LC0004: Exception occurred creating type 'GrapeCity.ActiveReports.Viewer.Win.Viewer, GrapeCity.ActiveReports.Viewer.Win.v10, Version=10.0.5602.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff' System.ComponentModel.LicenseException: License cannot be confirmed. Error code: 01-001


    This works on the TFS server.

    Is the way around this the method you describe above?
  • Marked as Answer

    Replied 11 February 2020, 4:34 pm EST

    Hello,

    >>Does this work for version 10.1.5602?
    Yes, it will work with AR10 also.

    Also, I recommend you to update the latest version of AR10. You can download the installer from the following link:
    http://cdn.grapecity.com/ActiveReports/ar10/hotfixes/ActiveReports-v10.3.9733.0.msi

    Thanks,
    Mohit
  • Replied 12 May 2020, 8:25 am EST

    Hi,

    Should the above process work with a .NET Core and .gclix file as well? I tried embedding a generated .gclix file, but it looks like the Azure Devops build still downloads the license manager and generates a trail license.


    Downloading from "https://cdn.grapecity.com/license/gclm_deploy.exe" to "C:\Users\VssAdministrator\AppData\Local\Temp\gclm_deploy.exe" (475,136 bytes).
    ##[warning]EXEC(0,0): Warning : Generate License for ActiveReports 14 successfully. Details: Trial License Activated (30 days left)
    EXEC : warning : Generate License for ActiveReports 14 successfully. Details: Trial License Activated (30 days left) [D:\a\1\s\webapi\DSG.Api\DSG.Api.csproj]
  • Replied 20 May 2020, 6:06 am EST

    Hello,

    Sorry for the delay!
    I am investigating on the issue and will inform you shortly

    Thanks,
    Mohit
  • Replied 21 May 2020, 3:28 am EST

    Hello,

    Please add the following line in the csproj file to disable the generating the license:
     <PropertyGroup>

    <DisableGclm>True</DisableGclm>
    </PropertyGroup>


    Hope it helps.

    Thanks.
    Mohit
  • Replied 26 May 2020, 10:40 am EST

    Thank you - it's working now.
  • Replied 16 July 2020, 12:27 pm EST

    What about AR9, will this work with AR9?
  • Replied 4 August 2020, 6:17 pm EST

    Hi Mohit,

    We are using Active Reports 6 software in our Build machine. we want to integrate active reports in Azure Devops pipeline. We are using Azure pipelines to compile/Build the code. Could you please let us know how to integrate it with Azure Devops pipelines.

    Thanks,
    Leo
  • Replied 5 August 2020, 5:49 pm EST

    Hello,

    Please try with the steps as mentioned in the following link:
    https://www.grapecity.com/forums/ar-dev/how-to-build-ar-v9-on-a-az#helloplease-do-the-followi
    For "ApplicationLicenseGenerator.exe", you need to download the latest version of AR6 from the following link:
    https://cdn.grapecity.com/ActiveReports/legacy/ar6_6.3.4797.zip

    Also, AR6 never tested withAzure Devops pipelines. If it not work, I suggest you migrate to the latest version of AR i.e AR14 as AR6 is out of maintenance mode and we don't support it anymore.

    Thanks,
    Mohit
Need extra support?

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

Learn More

Forum Channels