Azure DevOps Pipelines Hosted Build Agent Licensing Question

Posted by: mchristensen on 3 February 2020, 3:13 pm EST

    • Post Options:
    • Link

    Posted 3 February 2020, 3:13 pm 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.

  • Posted 4 February 2020, 3:29 am 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

  • Posted 11 February 2020, 7:06 pm 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?

  • Posted 11 February 2020, 7:07 pm 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?

  • Posted 12 February 2020, 1:34 am 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

  • Posted 12 May 2020, 5:25 pm 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]
    
    
  • Posted 20 May 2020, 3:06 pm EST

    Hello,

    Sorry for the delay!

    I am investigating on the issue and will inform you shortly

    Thanks,

    Mohit

  • Posted 21 May 2020, 12:28 pm 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

  • Posted 26 May 2020, 7:40 pm EST

    Thank you - it’s working now.

  • Posted 16 July 2020, 9:27 pm EST

    What about AR9, will this work with AR9?

  • Posted 5 August 2020, 3:17 am 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

  • Posted 6 August 2020, 2:49 am 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

  • Posted 4 November 2020, 8:46 am 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.

    As you suggested we followed the steps mentioned in below 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

    ApplicationLicenseGenerator.exe was generating .DataDynamics.Licenses.dll file for me.

    Working fine for x64 platforms while running code in Visual Studio as well as opening my application by clicking .exe file.

    But not working for x86 platforms while opening my application by clicking .exe file.(Working while running code in Visual Studio)

    It should work with x86 platform when I click on .exe file of my Application.

    Pease suggest.

    Thanks,

    Leo

  • Posted 5 November 2020, 12:14 am EST

    Hello,

    Please note that AR6 is a legacy product now. It is out of maintenance mode now. Hence, we do not provide support for the same or no bug fixing will be done in the same. I would recommend you use the latest version of ActiveReports i.e ActiveReports 14. Please refer to the following link for more information:

    https://www.grapecity.com/activereports.

    But not working for x86 platforms while opening my application by clicking .exe file.(Working while running code in Visual Studio)

    Are you using the same “.DataDynamics.Licenses.dll” for the both the application. If yes, could you please try to create the different “.DataDynamics.Licenses.dll” for x86 platform by uploading the 32 bit exe in “ApplicationLicenseGenerator.exe”.

    Hope it helps.

    Thanks,

    Mohit

  • Posted 10 March 2021, 12:39 pm EST

    Followed these instructions to the letter and I’m still having an issue. I can build my app but when I try to generate a report I’m getting the message

    License for the PageReport cannot be found.||||||
    
  • Posted 12 March 2021, 12:55 am EST

    Hello,

    Can you please try 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

    Thanks,

    Mohit

  • Posted 10 June 2021, 11:51 am EST

    I’m trying to build a net5 (so .net core) web site on azure dev ops. It consists of two projects, Utilities and Utilities.Shared, both of which have references to AR15. We’re using the core reporting engine and the PDF export module and creating page reports.

    Following what I’ve read here and in https://www.grapecity.com/forums/ar-dev/activereports-15---licensi#looks-like-this-requires-a I created gclicx files for the two projects using :

    
    gclm "e88c1aa3-2781-44bb-b639-765c9ef6d15c" -lc ./.gclicx w3wp.Utilities.dll"
    gclm "e88c1aa3-2781-44bb-b639-765c9ef6d15c" -lc ./.gclicx w3wp.Utilities.Service.dll"
    
    

    I copied each of these in turn to the root of each project directory, and set them as an embedded resource. I checked the projects in, ran the pipeline and ran a release. This successfully deployed the latest site to our intranet server, but when I try to access a report I get the error:

    
    System.ComponentModel.LicenseException: This application will be terminated because it was built without a license for PageReport.     
    at GrapeCity.ActiveReports.Document.PageDocument.Render(IRenderingExtension renderingExtension, StreamProvider streams, NameValueCollection settings, Boolean forceDataRefresh, Boolean forceParameterDataRefresh, CancellationToken token)     
    at GrapeCity.ActiveReports.Document.PageDocument.Render(IRenderingExtension renderingExtension, StreamProvider streams, NameValueCollection settings, Boolean forceDataRefresh)     
    at GrapeCity.ActiveReports.Document.PageDocument.Render(IRenderingExtension renderingExtension, StreamProvider streams, NameValueCollection settings)     
    at GrapeCity.ActiveReports.Document.PageDocument.Render(IRenderingExtension renderingExtension, StreamProvider streams)    
    
    

    It’s failing in the following code:

    
                var repdoc = report.Document;
                var pdfRenderingExtension = new GrapeCity.ActiveReports.Export.Pdf.Page.PdfRenderingExtension();
                var prov = new GrapeCity.ActiveReports.Rendering.IO.MemoryStreamProvider();
                repdoc.Render(pdfRenderingExtension, prov);
                var ms = prov.GetPrimaryStream().OpenStream();
                return ms as System.IO.MemoryStream;
    
    

    I’ve tried this both with and without the DisableGclm property group, but get the same result each time

    Also, with the DisableGclm property group configured I get the same error when running from VS2019, presumably because I’m not running the site through iisexpress rather than w3wp - is it possible to embed licenses for both, or is there a better way to use a different option during development compared to during the build pipeline?

    Any suggestions would be most welcome!

  • Posted 10 June 2021, 12:32 pm EST

    Hello,

    You are using the AR14 in the application. Please try with “de456e2c-d2e3-4246-94e8-9648bbd6fbf0” instead of “e88c1aa3-2781-44bb-b639-765c9ef6d15c”

    Thanks,

    Mohit

  • Posted 11 June 2021, 6:00 am EST

    Hi Mohit,

    We are using AR15 in the above case (it was recently updated from AR14). We get the same results with either guid:

    • "

    • “With DisableGclm=True we get the no page license error”

    • “With DisableGclm=False we get the report displays but with the trial version watermark displayed. Also in the build process you can see the log entry where it says it will use a trial license”

    "

    We’d really like to get this working so any help would be very much appreciated

    Also, is there a page where these guids are listed against the relevant AR version?

  • Posted 11 June 2021, 10:10 am EST

    Looks like this may be the issue

    I get the same .gclicx file if I omit the EntryAssemblyName altogether. So for my assembly Utilities.dll, the correct line would be :

    
     gclm.exe "e88c1aa3-2781-44bb-b639-765c9ef6d15c" -lc ./.gclicx Utilities.dll"
    
    

    Hopefully this will help someone!

  • Posted 11 June 2021, 10:11 am EST

    Okay, I’ve got this working, but perhaps you can explain why? I’ve used the .gclicx files that were created under {project}\obj\debug\net5.0 on my own (licensed) machinem and set DisableGclm to true. This gives me a site that runs under visual studio and also when deployed to a target server via azure dev ops. Can you explain to me why this worked but following the instructions I was originally following didn’t?

    The licenses generated only vary in the (semicolon delimited) third segment. This was generated from the gclm tool using the steps outlined in the other thread, and with w3wp set as the hosting process:

    ;VXRpbGl0aWVzLlV0aWxpdGllcy5kbGw=;

    and this was generated in the working build from visual studio:

    ;VXRpbGl0aWVzLmRsbA==;

    As I think about it, specifying w3wp (or iisexpress, etc) doesn’t make sense - when I do the build in a local visual studio, it doesn’t know what the deployment target’s hosting process will be?

  • Posted 11 June 2021, 2:07 pm EST

    Hello,

    Sorry for the confusion.

    It is a webapplication, so it can run under w3wp.exe, iisexpress.exe etc processes

    Here’s customer uses the AR assemblies in class library and after that he uses the class library in the Web application. That’s I asked him to add processes name in the gclicx command.

    In your case, you are directly calling the assembly in the AzureOps that’s why you don’t need to put the w3wp name in your command.

    Hope it clarifies.

    Thanks,

    Mohit

  • Posted 14 June 2021, 4:04 am EST

    Thanks Mohit. A couple of follow up questions:

    • "* “I noticed in some cases I had multiple lines in each file (one for AR14 and one for AR15) - can you have as many lines as you need for your use cases?”

    • “We are also using a class library - some of the logic is shared between a windows service and a Blazor web site, so the active reports code is needed in all three, with the class library being a shared dependency of both the site and the service. Should I have needed to specify a process name in this case, as I didn’t appear to?”

      "

    Thanks,

    Kevin

  • Posted 14 June 2021, 5:58 am EST

    Hello,

    can you have as many lines as you need for your use cases?

    Sorry, Can you please explain this in detail as I am not able to understand it?

    Should I have needed to specify a process name in this case, as I didn’t appear to?

    Actually, when ActiveReports is embedded in a custom library called another application, a “license not found” error is shown. Therefore, you need to generate a license file for the target application.

    You can also refer to the following link:

    https://www.grapecity.com/activereportsnet/docs/v15/online/licensing-compiled-code.html

    Also, as my understanding, it is working at your end without specify the process name in gclicx file, because your are directly calling the assembly.

    Thanks,

    Mohit

  • Posted 25 June 2021, 4:55 am EST

    Hi Mohit, sorry to bother you again with this, but we’re now trying to apply the same to a .net4.7.2 mixed c#/vb desktop application, using AR15. There are a number of projects, but as an example I have a vb project called Saturn.Services.dll. I found Saturn.Services.dll.Licenses in the obj\release folder, copied it to the project root folder, renamed it as dll.Licenses, added it to the project and made it an embedded resource. When I try to build the project now though, I get the following error:

    2>------ Rebuild All started: Project: Saturn.Services, Configuration: Release Any CPU ------

    2>vbc : error BC31502: Resource name ‘Saturn.Services.dll.licenses’ cannot be used more than once.

    I figured this was similar to an issue reported earlier in this thread, so edited the Saturn.Services.vbproj file and added the property group below:

    True

    I still get the same error when trying to build the project though - do you have any suggestions?

  • Posted 28 June 2021, 4:52 am EST

    Hello,

    I am assuming that “Saturn.Services.dll” is a class library that is used in the MainProject. If my understanding is correct, then use the following steps:

    1: Generate the .glicx file using the following command:

    C:\ProgramData\GrapeCity\gclm>gclm.exe “e88c1aa3-2781-44bb-b639-765c9ef6d15c” -lc ./.gclicx “MainProjectName.Saturn.Services…dll”

    2: Add the .glicx find in the “Saturn.Services” class library project and make it embedded.

    3: Re-add the “Saturn.Services.dll” in your project and try again.

    No need to copy the “Saturn.Services.dll.Licenses” in your project and to add the disable gclm code.

    Thanks,

    Mohit

  • Posted 28 June 2021, 12:32 pm EST

    Thanks Mohit,

    I’ve just put together a simple project consisting of an EXE and a DLL to test this. The EXE has a section report and a form with a viewer, whilst the DLL has a class with a method that takes a section report document and exports a PDF. The EXE is ARTestApp.exe and the DLL is ARTestLib.dll. I created .gclicx files using the following commands:

    * “App”

    ```

    gclm.exe “e88c1aa3-2781-44bb-b639-765c9ef6d15c” -lc ./.gclicx “ARTestApp.exe”

    
    [b]* "DLL"
    [/b]```
    gclm.exe  "e88c1aa3-2781-44bb-b639-765c9ef6d15c" -lc ./.gclicx "ARTestApp.ARTestLib.dll"
    

    Each .gclicx file was then added to its project and set as an embedded resource. I built and tested the resulting EXE on my licensed development machine and it worked correctly. I then commited the changes to an Azure Dev Ops repo, built it with a pipeline using a self hosted agent with no license, then ran the resulting EXE. I received an initial pop up telling me that the build wasn’t licensed, and the report itself had the unlicensed footer text.

    In case I had misunderstood the process for the EXE, I then replaced the .gclicx file with one generated using

    gclm.exe "e88c1aa3-2781-44bb-b639-765c9ef6d15c" -lc ./.gclicx "ARTestApp.ARTestApp.exe"
    

    What did I do wrong?

    I’ve attached the sample projectsARTest.zip

  • Posted 29 June 2021, 3:38 pm EST

    Hello,

    Can you please try with the

    gclm.exe “e88c1aa3-2781-44bb-b639-765c9ef6d15c” -lc ./.gclicx “ARTestApp.dll”

    Thanks,

    Mohit

  • Posted 30 June 2021, 8:12 am EST - Updated 30 September 2022, 4:32 pm EST

    Hi Mohit,

    I tried that, but it didn’t help. Bear in mind there are two .gclicx files - you didn’t say what to do with the one for the EXE, so I tried your suggestion alongside both “ARTestApp.exe” and “ARTestApp.ARTestApp.exe”, but neither worked

    To simplify things I then removed the DLL reference from ARTestApp. I tried generating the .gclicx file with both options again, but neither worked. Can you advise?

    Kevin

  • Posted 1 July 2021, 2:33 am EST

    Hello Kevin,

    Sorry for the confusion, I meant to say that use the following line to generate the .gclicx file:

    gclm.exe “e88c1aa3-2781-44bb-b639-765c9ef6d15c” -lc ./.gclicx “ARTestApp.dll”

    instead of

    gclm.exe “e88c1aa3-2781-44bb-b639-765c9ef6d15c” -lc ./.gclicx “ARTestApp.ARTestApp.exe”

    gclm.exe “e88c1aa3-2781-44bb-b639-765c9ef6d15c” -lc ./.gclicx “ARTestApp.exe”

    I have checked on non-license machine and it works perfectly.

    Thanks,

    Mohit

  • Posted 1 July 2021, 4:30 am EST

    Hi Mohit,

    I feel like I must be doing something very stupid as I have tried that and it didn’t work. Can we concentrate on the case where there is no DLL? I removed the reference to ARTestLib.DLL from the ARTestApp.EXE project, and removed the code that called it from the button click event handler. We now have a single project ARTestApp.EXE that uses a section report and a viewer. Can you confirm what I should pass to gclm for that scenario? I have tried each of the three examples below, checking the project in in each case, and building it, but in each case the resulting application does not believe that Active Reports is licensed:

    • "* “gclm.exe “e88c1aa3-2781-44bb-b639-765c9ef6d15c” -lc ./.gclicx “ARTestApp.exe””
    • “gclm.exe “e88c1aa3-2781-44bb-b639-765c9ef6d15c” -lc ./.gclicx “ARTestApp.dll””
    • “gclm.exe “e88c1aa3-2781-44bb-b639-765c9ef6d15c” -lc ./.gclicx “ARTestApp.ARTestApp.exe””

      "

    If one of these should have worked, can you think of anything that might have interfered with it? Could it be something to do with the way it is being built? We are using MSBuild to do the build, and this the command line it uses for the compiler:

    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /nowarn:1701,1702 /fullpaths /nostdlib+ /platform:anycpu32bitpreferred /errorreport:prompt /warn:4 /define:TRACE /highentropyva+ /reference:C:\agents\Azure1\_work\5\s\packages\Portable.BouncyCastle.1.8.2\lib\net40\BouncyCastle.Crypto.dll /reference:C:\agents\Azure1\_work\5\s\packages\Gcef.Data.DataEngine.3.0.1\lib\net40\Gcef.Data.DataEngine.dll /reference:C:\agents\Azure1\_work\5\s\packages\Gcef.Data.ExpressionInfo.3.0.1\lib\net40\Gcef.Data.ExpressionInfo.dll /reference:C:\agents\Azure1\_work\5\s\packages\Gcef.Data.VBFunctionLib.3.0.1\lib\net40\Gcef.Data.VBFunctionLib.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Chart.15.1.0\lib\net462\GrapeCity.ActiveReports.Chart.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Chart.Win.15.1.0\lib\net462\GrapeCity.ActiveReports.Chart.Win.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.DataProviders.2.0.4\lib\net462\GrapeCity.ActiveReports.Core.DataProviders.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.Document.2.0.0\lib\net462\GrapeCity.ActiveReports.Core.Document.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.Document.Drawing.Gc.2.0.0\lib\net462\GrapeCity.ActiveReports.Core.Document.Drawing.Gc.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.Document.Drawing.Gdi.2.0.0\lib\net462\GrapeCity.ActiveReports.Core.Document.Drawing.Gdi.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.Drawing.Gc.2.2.5\lib\net462\GrapeCity.ActiveReports.Core.Drawing.Gc.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.Drawing.Gdi.2.2.5\lib\net462\GrapeCity.ActiveReports.Core.Drawing.Gdi.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.Export.Image.Page.2.2.5\lib\net462\GrapeCity.ActiveReports.Core.Export.Image.Page.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.Export.Pdf.Page.2.2.5\lib\net462\GrapeCity.ActiveReports.Core.Export.Pdf.Page.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.Export.Pdf.Section.2.0.0\lib\net462\GrapeCity.ActiveReports.Core.Export.Pdf.Section.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.Export.Tiff.Section.2.0.0\lib\net462\GrapeCity.ActiveReports.Core.Export.Tiff.Section.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.Rdl.2.2.5\lib\net462\GrapeCity.ActiveReports.Core.Rdl.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.Rendering.2.2.5\lib\net462\GrapeCity.ActiveReports.Core.Rendering.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Core.Scripting.2.2.5\lib\net462\GrapeCity.ActiveReports.Core.Scripting.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Design.Win.15.1.5\lib\net462\GrapeCity.ActiveReports.Design.Win.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.15.1.5\lib\net462\GrapeCity.ActiveReports.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Document.15.1.5\lib\net462\GrapeCity.ActiveReports.Document.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Export.Image.15.1.5\lib\net462\GrapeCity.ActiveReports.Export.Image.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Export.Pdf.15.1.5\lib\net462\GrapeCity.ActiveReports.Export.Pdf.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Export.Rdf.15.1.0\lib\net462\GrapeCity.ActiveReports.Export.Rdf.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Serializer.15.1.0\lib\net462\GrapeCity.ActiveReports.Serializer.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Viewer.Common.15.1.5\lib\net462\GrapeCity.ActiveReports.Viewer.Common.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.Viewer.Win.15.1.5\lib\net462\GrapeCity.ActiveReports.Viewer.Win.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.ActiveReports.15.1.5\lib\net462\GrapeCity.ActiveReports.Win.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.DataVisualization.Chart.0.4.7\lib\net462\GrapeCity.DataVisualization.Chart.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.Documents.Common.3.2.0.560\lib\net461\GrapeCity.Documents.Common.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.Documents.Common.Windows.3.2.0.560\lib\net461\GrapeCity.Documents.Common.Windows.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.Documents.DX.Windows.3.2.0.560\lib\net461\GrapeCity.Documents.DX.Windows.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.Documents.Imaging.3.2.0.560\lib\net461\GrapeCity.Documents.Imaging.dll /reference:C:\agents\Azure1\_work\5\s\packages\GrapeCity.Documents.Pdf.3.2.0.560\lib\net461\GrapeCity.Documents.Pdf.dll /reference:C:\agents\Azure1\_work\5\s\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\Microsoft.VisualBasic.dll" /reference:C:\agents\Azure1\_work\5\s\packages\Microsoft.VisualStudio.DpiAwareness.6.1.28916\lib\net46\Microsoft.VisualStudio.DpiAwareness.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\mscorlib.dll" /reference:C:\agents\Azure1\_work\5\s\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Deployment.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Design.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Drawing.Design.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Drawing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Management.dll" /reference:C:\agents\Azure1\_work\5\s\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Net.Http.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Numerics.dll" /reference:C:\agents\Azure1\_work\5\s\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll /reference:C:\agents\Azure1\_work\5\s\packages\System.Runtime.CompilerServices.Unsafe.5.0.0\lib\net45\System.Runtime.CompilerServices.Unsafe.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Runtime.Serialization.dll" /reference:C:\agents\Azure1\_work\5\s\packages\System.Text.Encodings.Web.5.0.0\lib\net461\System.Text.Encodings.Web.dll /reference:C:\agents\Azure1\_work\5\s\packages\System.Text.Json.5.0.0\lib\net461\System.Text.Json.dll /reference:C:\agents\Azure1\_work\5\s\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll /reference:C:\agents\Azure1\_work\5\s\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Web.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Windows.Forms.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Xml.Linq.dll" /debug:pdbonly /filealign:512 /optimize+ /out:obj\Release\ARTestApp.exe /subsystemversion:6.00 /resource:obj\Release\ARTestApp.Form1.resources /resource:obj\Release\ARTestApp.Properties.Resources.resources /resource:obj\Release\ARTestApp.SectionReport1.resources /resource:.gclicx,ARTestApp..gclicx /resource:obj\Release\ARTestApp.exe.licenses /target:winexe /utf8output /deterministic+ /langversion:7.3 Form1.cs Form1.Designer.cs Program.cs Properties\AssemblyInfo.cs SectionReport1.cs SectionReport1.Designer.cs Properties\Resources.Designer.cs Properties\Settings.Designer.cs "obj\Release\.NETFramework,Version=v4.7.2.AssemblyAttributes.cs"
    
  • Posted 6 July 2021, 3:58 am EST

    Any luck with that last question? It feels like a single project desktop application should be the simplest case?

  • Posted 8 July 2021, 9:40 am EST

    Hello,

    I am very sorry for the delay!

    Can you try with 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

  • Posted 9 July 2021, 11:10 am EST

    Polite reminder - my question is still outstanding?

  • Posted 12 July 2021, 5:47 am EST

    Hello,

    Did you try with steps as mentioned in my last response:

    https://www.grapecity.com/forums/ar-dev/azure-devops-pipelines-hos#helloi-am-very-sorry-for-t

    Thanks,

    Mohit

  • Posted 12 July 2021, 6:47 am EST

    Thanks Mohit, I didn’t see your answer. I’ve given that a try now and it works, thank you. So it looks like the following:

    For .Net Core use the gclicx method, and it needs to be applied to each assembly which uses AR components

    For .Net Framework EXE projects use the licenses.licx method. This only needs to be applied to EXE assembly (as long as its licenses.licx file covers all components), and the original licenses.licx needs to be excluded, performing a similar function to the DisableGCLM attribute

    Does that sound right? I’ve tested it on the simple project I uploaded, and will attempt to do the same for a real project in a couple of weeks

  • Posted 14 July 2021, 1:55 pm EST

    Hello,

    Does that sound right?

    Yes. However, .Net FW also works with .gclicx. I gave you another way so that It will work ar your end.

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels