Posted 20 April 2018, 12:30 pm EST
Hi,
We are running into licensing issues when trying to run reports on unlicensed machines (issue 1) and build server (issue 2).
Project set up:
-We have an ASP.Net MVC web project.
-Code based Section Reports are added to the web project directly under a different folder
-License.licx file was generated automatically and shows up under the properties folder of the project.
-This file is set to be an embedded resource, and has the references to
GrapeCity.ActiveReports.SectionReport
GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport
-Developer standard license for AR 12 is activated on my machine.
Everything works fine on my machine, but as soon as the code is run on a machine that is not licensed, we get License for the SectionReport cannot be found.
Same error occurs when the build and deployment server runs a unit test that calls the report.
==========================
After going through some of the forums we made the below changes
- Moved the reports to its own class library
- Added a reference of this class library to the asp.net mvc web project. This web project controller calls the reports.
- Created the ReportAssemblyName.dll.GrapeCity.Licenses.dll satellite assembly using the ApplicationLicenseGenerator.exe and added that to the bin folder of the tests
- Add Grapecity assemblies to the bin folder of the web project as well as the unit test project.
This solved the issue of running the report on unlicensed machine and development server
But issue #2 of running tests on the deployment server still remains.
Can you suggest any other options that we can try?
Thanks
Amit