License issue with ASP.NET MVC

Posted by: sebastian-jn.k on 26 May 2025, 1:47 pm EST

    • Post Options:
    • Link

    Posted 26 May 2025, 1:47 pm EST

    Hello,

    we’re trying to use the **@Html.C1().PdfViewer() **control in a Razor view.

    Installed NuGet packages:

    • C1.Web.Mvc – version 4.8.20251.372

    • C1.Web.Mvc.FlexViewer – version 4.8.20251.372

    We’ve added the following namespaces in Views/web.config:

    <add namespace="C1.Web.Mvc" />
    <add namespace="C1.Web.Mvc.Fluent" />
    <add namespace="C1.Web.Mvc.Viewer" />
    <add namespace="C1.Web.Mvc.Viewer.Fluent" />

    Licensing setup:

    *We added a licenses.licx file using Tools > Mescius > Generate License.

    *The entries in the licenses.licx file are:

    C1.Web.Mvc.LicenseDetector, C1.Web.Mvc
    C1.Web.Mvc.Viewer.LicenseDetector, C1.Web.Mvc.FlexViewer

    *The *.gclicx file was also generated using the Mescius Tools menu.

    *Sample attached

    *Views/Home/Index.cshtml

    @Html.C1().PdfViewer();

    However, when we try to build the project, we get an lc.exe error related to licensing.

    We are using the Enterprise Edition.

    Any ideas what could be missing or misconfigured?

    Thanks in advance!C1MvcWebApplication1.7z

  • Posted 27 May 2025, 10:54 am EST

    Hello,

    Thanks for sharing the sample. Based on the details, it looks like you’re using a 2021v3 serial key to license the 2025v1 web controls, which is likely causing the licensing issue on your end.

    JFI, the Standard Developer License includes one year of updates. So with a 2021v3 key, you’re entitled to use controls up to version 2022v3.

    To fix the error, you’ll either need to get an updated key or use a version of the controls that matches your current license. [Then generate the *.gclicx file again, removing the previous one. Clean and rebuild your project.]

    Get in contact with our Sales team to get a new license at https://developer.mescius.com/contact


    If you still face issues, please share a screenshot of the error you are getting and other details.

    Regards,

    Uttkarsh.

Need extra support?

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

Learn More

Forum Channels