Open Closed

ABP-LIC-0020 - License code not found! #9442


User avatar
0
alper created
Support Team Director

Douglas W. has an issue about licensing. His license already expired.

fail: Volo.Abp.Account.Pro.Public.Web.Shared.AbpAccountPublicWebSharedModule[0]
      ABP-LIC-0020 - License code not found! Ensure that your appsettings.json or appsettings.secrets.json has "AbpLicenseCode" key with your license code.
fail: Volo.Abp.AspNetCore.Mvc.UI.Theme.Commercial.AbpAspNetCoreMvcUiThemeCommercialModule[0]
      ABP-LIC-ERROR - License check failed for 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Commercial-v8.0.1.0'.
     
      For more information, contact to license@abp.io.)

1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    normally this happens when your startup project doesn't have AbpLicenseCode. There's a simple check if you properly include the license code config in your host project. run the following code, when AbpLicenseCode is not empty it'll not throw any exception.

    var configuration = Microsoft
                .Extensions
                .DependencyInjection
                .ServiceProviderServiceExtensions
                .GetRequiredService<Microsoft.Extensions.Configuration.IConfiguration>(context.ServiceProvider);
    
    var licenseCode = configuration["AbpLicenseCode"];
    

    Also check this => https://abp.io/support/questions/8633/

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on June 20, 2025, 11:20