Posted 16 November 2020, 10:02 pm EST
Hi,
I am experiencing a number of issues relating to licensing within a .NET Core project for use with the JSViewer. I am currently within the trial period for ActiveReports, but I understand this shouldn’t be the cause.
I have a Core 3.1 project (copied from the WebSamples14/JsViewerSamples/JSViewer_Vue(Core) sample project on Github). This sample uses embedded templates, but I would like to use the custom store option instead (settings.UseCustomStore). On running this, within the method called to return the PageReport, as soon as my code tries to new up a PageReport, I get an exception that GrapeCity.ActiveReports.Licensing cannot be found - which I understand.
The solution to this should just be to include a licences.licx embedded file and rebuild. But when I do this, Visual Studio 2019 fails to build because the LC.EXE command line is longer than 32000 chars. This is because of the large number of packages required just by ActiveReports alone, never mind any additional packages I require as part of the project. No matter what I have tried to do to fix this, I simply cannot get a NET Core project to build with a license.licx embedded file. I have tried the option to create a .gclicx file instead, but that doesn’t seem to work either (this is a single project solution).
To test whether this is isolated to NET Core, I have recreated the same project with .NET 4.7.2. With the embedded licence.licx file - I have no problems at all and the CustomStore option works as intended without any licencing exceptions or errors. This is not an ideal solution for me as I would prefer to use NET Core for this project.
I am happy to package up my test projects if required, but you should be able to recreate simply from the above mentioned sample project on GitHub.
Thanks,
Mike.