License File Generation with MVC(Core) Applications

Posted by: david on 26 March 2020, 3:03 am EST

  • Posted 26 March 2020, 3:03 am EST

    I'm working on an MVC Core application and having issues creating a licenses.licx file using Visual Studio 2019. Ultimately I want to demo reports running on our Azure App Service using AR14. Everything works locally on Windows and macOS running .NET Core.

    I'm following the directions here:

    Using as a starter application.

    According to the instructions a licenses.licx file should be created automatically and embedded in my application.

    For my app or the sample, no licenses.licx file is generated. I attempted to copy one from another sample but it causes compilation issues.

    Any thoughts on how I can get a generate a dev license to demo our items on our app service?

  • Marked as Answer

    Replied 26 March 2020, 10:21 pm EST


    You can add the attached " licenses.licx " in your project. I have checked with the JSViewer_MVC(Core) sample after deploying to azure. It works perfectly fine.

  • Replied 2 April 2020, 11:13 am EST

    Thank you for the file. I did get working and learned quite a bit. Note we are using a .Net Core application.

    Some notes for other users:
    • Do not choose the option of 'Embedded Resource' for the license file, it will use lc.exe and the build will fail (this is a known .Net core issue)

    • msbuild must be used and not dotnet build in order for the gclm tool to build and include the license file in the dll

Need extra support?

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

Learn More

Forum Channels