ASP.NET WebForms – Compilation Succeeds but Runtime LicenseException

Posted by: enrique.pv-ext on 16 April 2026, 7:36 am EST

  • Posted 16 April 2026, 7:36 am EST

    I have activate a valid license key on the machine using Visual Studio 2022, Tools → Mescius → License Manager. ASP.NET WebForms latest 2025v2 version.

    My project is an ASP.NET WebForms application based on .NET Framework 4.8.1

    The licenses.licx file are in Properties subfolder.

    The embedded .gclicx file are in the root of project.

    ASP.NET WebForms – Compilation Succeeds but Runtime LicenseException When licenses.licx / .gclicx Is Missing

    I would like to confirm the expected licensing behavior for an ASP.NET WebForms application using ComponentOne controls (.NET Framework), based on the following tests we performed.

    Test Scenarios

    We tested different combinations by removing or excluding license files from the project:

    Removing licenses.licx and keeping embedded resource Aleatica.Sep.WebApp.gclicx

    :white_check_mark: The project compiles successfully

    :white_check_mark: The project works ok at runtime

    Modifying the embedded resource Aleatica.Sep.WebApp.gclicx

    Excluding .gclicx from the project

    Excluding .gclicx from the project and keeping licenses.licx as Embedded Resource

    Removing both licenses.licx and .gclicx

    In all cases:

    :white_check_mark: The project compiles successfully

    :x: Errors occur only at runtime

    Runtime Error Observed

    At application startup (when a C1 control is instantiated), the following exception is thrown:

    [LicenseException: No se puede conceder una licencia válida para el tipo C1.Web.Wijmo.Controls.C1Menu.C1Menu. Póngase en contacto con el fabricante del componente para más información.]

    C1.Util.Licensing.ProviderInfo.Validate(Type type, Object instance, Boolean showNagDialog, Boolean useAppDomainTest) +1452

    C1.Web.Wijmo.Controls.C1Menu.C1Menu.VerifyLicense() +43

    C1.Web.Wijmo.Controls.C1Menu.C1Menu…ctor() +198

    This occurs specifically when nor a valid embedded .gclicx file is present.

    Once the license is activated, your project must include a valid embedded license file to run without any licensing errors. Since your project is an ASP.NET WebForms application based on .NET Framework, it can be licensed using either a licenses.licx file (design-time license) or a .gclicx file (runtime license).

    If the machine does not have an activated license, the project will not embed a valid license file, and licensing errors will occur. Therefore, activating the license on the machine is a required step.

  • Posted 17 April 2026, 5:46 am EST

    Hi,

    This behavior is unexpected, as the project should work correctly with the licenses.licx file as well. We tested a sample project by adding a C1GridView control with only a licenses.licx file, and it worked as expected. We also published the sample project to IIS, and it functioned correctly there.

    We have attached the sample project for your reference (WebApplication1.License.Delete.zip).

    As a precautionary approach, you can simply embed both the licenses.licx file and the .gclicx file in your project. This ensures that the license is properly embedded and helps avoid any potential runtime errors.

    Best Regards,

    Kartik

  • Posted 20 April 2026, 8:21 am EST

    I try test it.

    I have commented in web.config

    <!--<add assembly="C1.C1Report.4.8, Version=4.8.20252.740, Culture=neutral, PublicKeyToken=594A0605DB190BB9" />-->
     </assemblies>

    I add reference to C1.Web.Wijmo.Controls.48.dll , Version=4.8.20252.399.

    Ihave the licenses.licx file, version and no version ?

    C1.Web.Wijmo.Controls.C1GridView.C1GridView, C1.Web.Wijmo.Controls.48, Version=4.8.20252.399, Culture=neutral, PublicKeyToken=9b75583953471eea
    C1.Web.Wijmo.Controls.C1GridView.C1GridView, C1.Web.Wijmo.Controls.48, Version=4.8.20252.404, Culture=neutral, PublicKeyToken=9b75583953471eea
    C1.Web.Wijmo.Controls.C1GridView.C1GridView, C1.Web.Wijmo.Controls.48

    I have the WebApplication1.License.Delete.gclicx file in csproj like Embbeded resource.

    gclicx is generated, is required ?

  • Posted 21 April 2026, 10:00 am EST

    Hi,

    In the licenses.licx file, the Version, Culture, and PublicKeyToken attributes are not mandatory. You can include only the basic entry shown below, and it will work correctly.

    C1.Web.Wijmo.Controls.C1GridView.C1GridView, C1.Web.Wijmo.Controls.48

    Regarding the .gclicx file - The .NET Framework projects can work without it, as demonstrated in our sample project that uses only the licenses.licx file. However, as mentioned earlier, you can also embed both the licenses.licx and .gclicx files in your project as a precautionary measure.

    Best Regards,

    Kartik

Need extra support?

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

Learn More

Forum Channels