License nag screen appears if we rename the executable file

Posted by: vsaldana on 28 September 2020, 9:47 pm EST

  • Posted 28 September 2020, 9:47 pm EST

    Hello,

    Recently we updated our applications to reference the 4.5.2 framework C1 components from 4.0.

    Everything works fine but if we build the project and rename (or copy) the executable file then the licensing nag screen appears (it doesn’t appear if it has the original name).

    Previously to the update we didn’t have this behaviour.

    In our case we need to distribute copies of the executable with different file names, is there a way to get around it?

    I’m attaching a simple project to show this behaviour, it’s just a form with a C1Ribbon. In the bin/release folder you’ll find the original exe (C1LicenseTest.exe) which doesn’t prompt the nag screen and a copy of the same file (C1LicenseTest-copy.exe) which does.

    Thank you very much for your help.

    C1LicenseTest.zip

  • Posted 30 September 2020, 2:35 am EST

    Hello,

    I can see that renaming the executable shows a nag screen. However, as I understand it is by-design since the licensing system obtains the run-time license.

    Starting July 29 2020, GrapeCity has introduced new license, I would suggest you to kindly check the following page [heading ‘HOW DOES LICENSING WORK?’]:

    https://www.grapecity.com/componentone/licensing

    In our case we need to distribute copies of the executable with different file names, is there a way to get around it?

    I am discussing it with the team and will get back to you soon.

    Regards,

    Ruchir

  • Posted 6 October 2020, 2:59 am EST

    Hello,

    Just wanted to share the issue has been forwarded to the developers [ID: 466745]. We will get back to you as soon as there is some information.

    Regards,

  • Posted 7 October 2020, 10:49 pm EST

    Thank you very much.

    In the meantime we are trying to get around the issue by copying the executables (with the original name) in different subfolders and overriding the assembly resolver to check for dlls on the parent folder.

  • Posted 22 October 2020, 6:23 am EST

    Hi,

    The team has confirmed that this behavior has always been true for WinForms/etc applications where the runtime license is embedded in the application using licenses.licx file and the license compiler.

    The team shares following information:

    The license compiler reads the licenses.licx file and queries each control listed for a runtime license. The controls return a valid runtime license if a design time license is present/an eval license if available and throw an exception or nag otherwise. If a runtime license is returned, it is added to a hash table which is embedded as a resource in the application with the name .licenses.

    When the control check for a runtime license during runtime instantiation, it queries for a runtime license by passing in the name used to store it during design time. It looks at the application resources and assumes the resource will be named .licenses (in this case, C1LicenseText.exe.licenses). If you change the assembly file name the licensing resource cannot be found with the new name, only the old name. With no licenses found, the control throws and exception or nags.

    The included sample also contains another resource C1LicenseText.gclicx. The .gclicx can also provide a license regardless start of the name because the new license mechanism checks for a resource of any name that ends with .gclicx. Checking the contents of the C1LicenseTest.gclicx file (the contents of this are used to generate the resource), you can see that the entry starts with “331cf6cd-b73c-429f-ba79-fa2f85eebd68”. This is guid for the new English Studio Enterprise license.

    We suspect that in the past, you had a valid Studio Enterprise Evaluation license that has since expired. If the eval license was renewed, then the application would not nag when the exe assembly name is changed.

    If the .glicx file contained a valid full license (rather than an eval license), then you could rename it at will.

    Regards,

  • Posted 15 April 2021, 11:11 pm EST

    Hi C1,

    is the gclicx file possible for a .NET framework 4.6.1 application?

    We have one customer where we must force our “AnyCPU” application to run as 32 bit (32 bit Office). So I used the “RunAs32bit.exe” as described here: https://lostechies.com/gabrielschenker/2009/10/21/force-net-application-to-run-in-32bit-process-on-64bit-os/

    But this causes the licenses nag screen to show - probably because this is the same as renaming the exe.

    Is it possible to migrate to “gclicx” files or are they only possible for .NET core and beyond?

    I don’t want to create a x86 build of our application.

    But probably we will install x64 office on the customer machine, so this is not a major problem.

    Best regards

    Wolfgang

  • Posted 18 April 2021, 11:21 pm EST

    Hi,

    Yes, you can use the “gclicx” files in Net framework 4.6.1. You can create the runtime license using the Grapecity toolbox menu in VS or you can also use the gclm by command line as mentioned at https://www.grapecity.com/componentone/docs/license/online-license/licensing-by-command-line.html.

    Regards.

    Avnish

  • Posted 20 April 2021, 12:53 am EST

    Hi Avnish,

    this does not help. A file “gclicx” is created, but at runtime at the customers site, the nag screen is still shown.

    Maybe this approach does not work for the “RunAs32bit.exe” use case?

    Best regards

    Wolfgang

  • Posted 20 April 2021, 5:42 am EST

    I created a new topic here: https://www.grapecity.com/forums/winforms-edition/licensing-error-when-launc - sorry for hijacking this. I thought my issue would be related, but it does not seem to be so.

    Wolfgang

  • Posted 20 April 2021, 8:58 pm EST

    Hi Wolfgang,

    We have answered your query on the new thread.

    https://www.grapecity.com/forums/winforms-edition/licensing-error-when-launc

    Regards.

    Avnish

Need extra support?

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

Learn More

Forum Channels