License Issue ActiveReports 12 - ASP.Net MVC

Posted by: anatekar on 20 April 2018, 12:30 pm EST

    • Post Options:
    • Link

    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

    1. Moved the reports to its own class library
    2. Added a reference of this class library to the asp.net mvc web project. This web project controller calls the reports.
    3. Created the ReportAssemblyName.dll.GrapeCity.Licenses.dll satellite assembly using the ApplicationLicenseGenerator.exe and added that to the bin folder of the tests
    4. 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

  • Posted 23 April 2018, 2:44 am EST

    Hello Amit,

    Good Day!

    You can use “WebKeyGenerator.exe” to license your application

    1: Run the WebKeyGenerator.exe (located at C:\Program Files (x86)\GrapeCity\ActiveReports 12\Tools)

    2:In the dialog that appears, click Copy.

    3:In your project web.config file, between the opening and closing tags (or in place of them, if they are empty) paste the web key so that it looks like the following.

    
    <configuration>
    <appSettings>
    <add key=" ActiveReports 12 License" value="Generated Web Key" />
    </appSettings>
    </configuration>
    
    

    Hope it helps.

    Thanks,

    Mohit

  • Posted 23 April 2018, 3:27 pm EST

    Hello Mohit,

    Our issue is only getting the deployment server to run tests. The calling application in this case is the unit test project.

    I’ve tried the step of adding the web key before I posted the issue and adding the key did not make any difference. The web key was added to the web.config of the MVC project as well to the app.config of the unit test project, but unit tests continued to fail.

    But when the tests are run on another unlicensed developer machine that does not have AR installed, they run fine and succeed.

    Thanks

    Amit

  • Posted 24 April 2018, 5:06 am EST

    Hello Amit,

    What I understand from this, you are following the same process on unlicensed developer machine and server machine. However, issue only occurs on the server machine.

    If my understanding is correct then could you please share the following things:

    1: Full detail about the server environment

    2: Have you ever installed AR on the server machine

    3: How are you deploying the application on the server

    4: Are you deploying the application on other unlicensed developer machine or just copy paste the application and run the application.

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels