Invalid Licence key when calling new GcPdfDocument("key")

Posted by: gaurav.sood on 23 May 2025, 2:20 am EST

  • Posted 23 May 2025, 2:20 am EST

    Invalid Licence key when calling new GcPdfDocument(“key”) as suggested here in your site.

    https://developer.mescius.com/document-solutions/dot-net-pdf-api/docs/online/GettingStarted/licenseinfo#licensed

  • Posted 23 May 2025, 7:48 am EST

    Hi,

    Thanks for reaching out.

    The Invalid License Key error usually occurs when:

    1. The license key is incorrect or mistyped – Please double-check for any extra spaces or formatting issues when passing the key to new GcPdfDocument(“DsPdf-License-Key”)

    2. The license key does not match the product version – Make sure that the key you’re using is valid for the version of DsPdf you are using. A Version 8 license key can only be used with DsPdf Version 8, a Version 7 license key can only be used with DsPdf Version 7, and so on.

    3. The Developer key is used instead of the Distribution key - Confirm that the Developer Key is registered on the License page and the distribution key is generated which can be used as a license key.

    You can also refer to the Document Solutions Licensing Page for further clarifications on licenses.

    In case the problem persists on your end, please share the license key with us on our private customer support portal: https://developer.mescius.com/my-account/my-support

    Kind Regards,

    Kartik

Need extra support?

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

Learn More

Forum Channels