License issue with C1.AspNetCore

Posted by: wendym on 11 December 2023, 3:34 pm EST

  • Posted 11 December 2023, 3:34 pm EST

    Trying to use only C1.AspNetCore.Api.Pdf, in a blazor net7 project, not needing any other features.

    Package compiles correctly without license, and I see ComponentOne watermark on PDF generation.

    If I add licenses.licx file I get:

    LC0003 Unable to resolve type 'C1.Web.Api.LicenseDetector, C1.Web.App \Properties\Licenses.licx

    If I add Package C1.Web.Api from Nuget (it is not available in /packages local folder).

    Exception occurred creating type ‘C1.Web.Api.LicenseDetector, C1.Web.Api, Version=4.8.20233.331, Culture=neutral, PublicKeyToken=9b75583953471eea’ System.ComponentModel.LicenseException: A valid license cannot be granted for the type C1.Web.Api.LicenseDetector. Contact the manufacturer of the component for more information. \Properties\Licenses.licx

    questions

    1. what should the license file look like
    2. which packages are required and where do they come from?
  • Posted 12 December 2023, 7:49 am EST

    Hello,

    Please note that NET 7.0 support will end soon so we would suggest to use the NET 8.0. Please note that to use the C1 PDF WEB Api service, you need to use the C1.AspNetCore.Api.Pdf with the latest version. And this version would require the latest license that would be valid till 2023v3.

    For information, the valid license for this version would have only numeric and we found that you have alpha-numeric key that is also for 2018v3 that would ve valid till 2019v3.

    So for that you need to upgrade to the latest key. Please also refer to the attached sample created with the NET8.0 with C1 PDF web api. To run this application, you need to generate the runtime license for *.Server project which can be generated from Visual Studio after upgrading the version of the Grapecity Tools installed for Visual Studio.

    Blazor-Webapi-PDF_CORE.zip

    Hope it helps!

    **PS: In case, you would like to share or discuss some private information related to the license, please create a case on private portal: **

    https://developer.mescius.com/my-account/my-support

    Regards,

    Manish Gupta

Need extra support?

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

Learn More

Forum Channels