C1LicenseActivation.exe fails with error 8

Posted by: woweh on 28 October 2020, 7:33 pm EST

  • Posted 28 October 2020, 7:33 pm EST

    Running C1LicenseActivation.exe in different Azure pipelines.
    In 1 of these pipelines, C1LicenseActivation.exe failed the second day running with error 8.
    According to this information...
    ... this means Wininet Error.
    The pipelines are all set up the same way.
    Any ideas or tips, anything I can check somewhere?

    Any plans to update C1LicenseActivation.exe to use WinHTTP instead of WinINet?



    Reference Information:
    * https://www.grapecity.com/kb/silently-activate-and-deactivate-a-license-for-winforms
    * https://www.grapecity.com/blogs/componentone-licensing
    * https://www.grapecity.com/forums/c1-studio/activation-on-visual-studi
  • Replied 30 October 2020, 7:19 am EST

    We are looking into it and will get to you soon.
  • Replied 1 November 2020, 11:35 pm EST


    This is just to update you that we have raised a request for information from the concerned team [ID: 23810]. We will get back to you as soon as there is some information.

  • Replied 1 November 2020, 11:55 pm EST

    Thanks for the replies.

    I've slightly refactored the cake script to try a few times, and so far it is working well, no errors anymore.

    Following is a snippet from the cake script:

    // activate the ComponentOne license
    if (FileExists(c1LicenseActivationExe))
    int exitCode;
    int tries = 0;
    const int maxTries = 5;

    // try max 5 times...
    exitCode = StartProcess(c1LicenseActivationExe, "/as:{serialNumber} /u:{userName} /c:{companyName}");

    if (exitCode != 5)
    Information($" - Error activating the C1 license: {exitCode} - try de-activating the license first:");

    var xCode = StartProcess(c1LicenseActivationExe, "/s:{serialNumber}");

    Information($" - De-activation exit code: {xCode}");

    } while (exitCode != 5 && tries <= maxTries);

    if (exitCode != 5)
    throw new Exception($"> Error activating the C1 license: {exitCode}");

    Information("> Successfully activated the C1 license!");

  • Replied 2 November 2020, 7:04 pm EST


    It's great that you could manage to avoid the exception.
    Also, I have received following information from the team:
    If you again face the exception, please share the version number of the C1LicenseActivation.exe in use and the first 7 characters of the serial number.

    Pipelines are better addressed with the new licensing scheme, so obtaining a new license and using the pipeline procedures for new licensing will best handle the issue.
    Also, the latest version of C1LicenseActivation.exe will better manage the situation.

    Additionally, we would like to inform you that C1LicenseActivation.exe will not be changing from WinINet to WinHTTP as after 2020v2 release our old licensing is being phased out.

Need extra support?

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

Learn More

Forum Channels