Licensing error when launching exe with "RunA32bit.exe"

Posted by: wknauf on 20 April 2021, 5:41 am EST

    • Post Options:
    • Link

    Posted 20 April 2021, 5:41 am EST

    This is a follow up for https://www.grapecity.com/forums/winforms-edition/license-nag-screen-appears_1: I have an app compiled with “AnyCPU”, that I have to launch on some machines in x86 mode as it needs Microsoft Access drivers, and on those machines only a x86 office is installed.

    I want to avoid building our app in X86 and deploying it. So I use the helper tool “RunAs32Bit” as suggested here: https://lostechies.com/gabrielschenker/2009/10/21/force-net-application-to-run-in-32bit-process-on-64bit-os/

    Now, the C1 license nag screen appears.

    This situation is probably only temporary as we will migrate those machines to x64 office, but I ask it anyway - it would be nice to get a quick workaround for this.

    Attached sample reproduces it. I also included the “RunAs32bit” project.

    First project “LicenseTestLicx” is the old licensing.

    Second project “LicenseTestGclicx” is the new licensing using the gclicx file.

    LicenseTest.zip

    Fix the path to “gclicx” in the project file, compile them, copy “RunAs32Bit.exe” to the “bin\Debug” directory and launch it as 32 bit using this command:

    RunAs32Bit.exe /assembly:LicenseTestGclicx.exe  /params:""
    

    Now the error will arise.

    Is there any easy workaround? As I wrote, I don’t need a long term resolution. If there is no easy resolution, I can tell the users to ignore this license screen until the office is fixed.

    Best regards

    Wolfgang

  • Posted 20 April 2021, 8:54 pm EST

    Hi Wolfgang,

    Thank you for providing the sample. Your use case is similar to licensing a user control. So, You need to generate the gclicx file using the GCLM utility with command line switch -lc. You need to generate gclicx by command line and then embed that in your project. For detailed steps please refer to the PDF and GIF attached that shows how we followed the steps with your project.

    Regards.

    Avnish

    LicenseTest_mod.zip

    gclicx.zip

  • Posted 23 April 2021, 1:22 am EST

    Hi Avnish,

    thanks for the resolution. Fortunately, our customers were migrated to x64 office faster than expected. So I do not have to struggle with the new licensing ;-).

    The information you provided above could be linked at https://www.grapecity.com/componentone/docs/license/online-license/overview.html

    Best regards

    Wolfgang

  • Posted 25 April 2021, 3:13 pm EST

    Hi Wolfgang,

    Good to hear that your issue has been resolved.

    Thank you for the feedback, we are working on improving our resources and will update information on new licensing methods.

    Regards.

    Avnish

  • Posted 1 June 2021, 10:32 pm EST

    Hi Wolfgang,

    We have updated our licensing documentation. You can find the licensing solution for the scenario you mentioned at https://www.grapecity.com/componentone/docs/license/online-license/license-user-controls.html.

    Regards.

    Avnish

  • Posted 1 June 2021, 11:51 pm EST

    Thanks!

    Wolfgang

Need extra support?

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

Learn More

Forum Channels