No license found when running Jetbrains Rider unit test runner

Posted by: andreas.appelros on 21 September 2022, 8:32 am EST

    • Post Options:
    • Link

    Posted 21 September 2022, 8:32 am EST

    I have a unit test which creates a Winforms UserControl containing an FlexGrid. When running the unit test with Jetbrains Rider IDE test runner, I get a No license found-dialog. But all dll:s are built with an activated license, and the application works without showing the dialog. It is only when running the unit test. I’ve tried setting [assembly: AssemblyConfiguration(“C1CheckForDesignLicenseAtRuntime”)]

    but it makes no difference.

    Regards,

    Andreas

  • Posted 22 September 2022, 2:22 am EST

    Hi Andreas,

    There is a change in the licensing model in the latest versions of C1 Controls, where, if the entry application is separate and it is instantiating/consuming a User Control with C1 components, then a .gclicx file generated using the name of the EntryApplication and UserControl must be embedded in the UserControl.

    It seems like you have a separate project for running your tests, and these projects instantiate your UserControl containing the C1 Components, which seems to match the scenario mentioned above, and the missing .gclicx file might be the one causing this issue.

    Therefore, we suggest that you follow the steps in the link below, to generate and embed a .gclicx file in your UserControl so that the licensing model knows which assemblies will be instantiating this UserControl.

    https://www.grapecity.com/componentone/docs/license/online-license/license-user-controls.html#i-heading-generate-a-run-time-license-through-visual-studio

    If you still face the issue, please provide the following information, so we can investigate further and assist you better.

    • The version of C1 controls you are using
    • A small sample application that shows your implementation and reproduces the issue you are facing

    Thanks, and Best Regards,

    Kartik

Need extra support?

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

Learn More

Forum Channels