This section describes how to generate the license for the compiled code or specifically for the applications deployed on the Azure Functions application. By default, licensing is applied to your main application. In case ActiveReports is embedded in a custom library that is called by another application, a "license not found" error is shown. Therefore, you need to generate a license file for the target application.
For example, there is a 'UserControlLibrary' project with ActiveReports libraries embedded and a 'MainApp' project that references the 'UserControlLibrary'. To generate a license for the specified target application, follow these steps:
C:\ProgramData\GrapeCity\gclm
gclm.exe "463c4179-288c-48fe-a4df-3b609586667d" -lc [output dir].gclicx "[entry assembly name].[calling assembly name].dll"
C:\ProgramData\GrapeCity\gclm>gclm.exe "463c4179-288c-48fe-a4df-3b609586667d" -lc ./.gclicx "MainApp.UserControlLibrary.dll"
gclm.exe "463c4179-288c-48fe-a4df-3b609586667d" -lc .\.gclicx Microsoft.Azure.WebJobs.Script.WebHost.[assembly name].dll
To add embedded license files (.gclicx) for multiple entry applications, you need to create multiple .gclicx files having a unique name for each of them.
For example, say you have two main apps 'MainApp1' and 'MainApp2' and one class library 'UserControlLibrary.dll', the user must create two license files using the following commands:
C:\ProgramData\GrapeCity\gclm>gclm.exe "463c4179-288c-48fe-a4df-3b609586667d" -lc ./MainApp1License.gclicx "MainApp1.UserControlLibrary.dll"
C:\ProgramData\GrapeCity\gclm>gclm.exe "463c4179-288c-48fe-a4df-3b609586667d" -lc ./MainApp2License.gclicx "MainApp2.UserControlLibrary.dll"
<PropertyGroup>
<DisableGclm>true</DisableGclm>
</PropertyGroup>