How to build AR V9 on a azure dev ops

Posted by: david.kethel on 15 July 2020, 5:01 pm EST

  • Posted 15 July 2020, 5:01 pm EST

    I have a .net solution that is using AR V9. I am licensed on my development machine.

    However, when I got to build the solution in azure dev-ops I get the following error.

    WSMproperty\Properties\licenses.licx(2,0): Error LC0004: Exception occurred creating type 'GrapeCity.ActiveReports.Viewer.Win.Viewer, GrapeCity.ActiveReports.Viewer.Win.v9, Version=9.5.7812.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff' System.ComponentModel.LicenseException: License cannot be confirmed. Error code: 01-001

    How do I go about building my solution in a hosted build in azure dev ops.

  • Replied 16 July 2020, 12:26 am EST


    You can use the "ApplicationLicenseGenerator" to create the license dll so that you can build your solution in Azure app.

    Please refer to the topic "To license ActiveReports when you cannot compile the calling application or the calling application is COM" in the following link:

    Hope it helps.

  • Replied 16 July 2020, 2:23 pm EST

    Thanks Mohit,
    I don't understand. Can you walk me through it?

    Steps I have taken.
    1. Install ActiveReports-v9.5.7812.0.msi on my machine and Activate it with my Licence.
    2. In my solution. I add references through the Add references -> Assemblies -> framework.
    3. My solution builds fine and everything is licensed.
    4. Now as we're doing azure dev ops hosted builds Active reports is not installed on the Azure machine that is doing the build. So I copied the active Report dlls from my bin/release folder, put them in a separate folder in my code base and changed my projects over to reference the copied dll's not the ones in C:\Program Files (x86)\Common Files\grapecite. Cause I'm assuming that the Active Report dlls out of my bin/release folder are licensed.
    5. I also have licence.licx files in my projects that look like

    GrapeCity.ActiveReports.SectionReport, GrapeCity.ActiveReports.v9
    GrapeCity.ActiveReports.Viewer.Win.Viewer, GrapeCity.ActiveReports.Viewer.Win.v9

    But my azure dev ops hosted build through the error above. Am I on the right track?
  • Replied 16 July 2020, 12:33 pm EST

    Also, Is this post relevant?

    I do see some {target}.{ext}.licenses files in my obj/release folder?

  • Replied 16 July 2020, 2:45 pm EST


    Please do the following steps:
    1: From the ...\Common Files\GrapeCity\ActiveReports 9 folder, run the ApplicationLicenseGenerator.exe. If you are using a Windows 7 or higher machine, right click the executable file and select Run As Administrator.
    2:Click the Browse button and select the compiled dll/Exe that requires licensing.
    3:In the Assembly description field, enter the description for the assembly that you are licensing. You can later view this description by right-clicking the licensed assembly.
    4:Click the Generate button
    5:Distribute the generated file <AssemblyName>.GrapeCity.Licenses.dll along with the application.

    Have you tried above steps? if you have the " <AssemblyName>.GrapeCity.Licenses.dll " in your application, you build the application on Azure dev ops.

    Also, delete the "Licenses.licx" file from the application.

    >>Also, Is this post relevant?
    This steps are never tested with the AR9. I suggest you to use the above-mentioed approach only.

    Please let me know if you still have some doubt.

  • Replied 16 July 2020, 3:22 pm EST

    Thanks Mohit.
    So do I run the "ApplicationLicenseGenerator.exe" on my application dll's or on the grape city DLL's. ?

  • Marked as Answer

    Replied 16 July 2020, 3:23 pm EST


    >> do I run the "ApplicationLicenseGenerator.exe" on my application dll's or on the grape city DLL's. ?
    On application dll or exe if you have executable.

  • Replied 16 July 2020, 3:39 pm EST

    Thanks Mohit,
    I'll give that a crack.

    The codebase I'm working on, came to me as the result of an acquisition, and the original developer is long gone.

    I noticed that there is a settings file with the following in it.

    <add key="ActiveReports 9 License" value="bSYNGtwoWAVEpS6o1qn...

    Does that mean anything to you? Is that a valid way to license Active reports? Should I remove it?

  • Replied 19 July 2020, 9:20 am EST

    Thanks Mohit,
    Running the ApplicationLicenseGenerator.exe worked and everything is building in azure dev ops now.

    Thanks for all your help.

Need extra support?

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

Learn More

Forum Channels