Open Closed

Error Code - ABP's license server is rejecting with ABP-LIC-0017 #10827


User avatar
0
bpdeveloper created

Hi, I have downloaded Chat Source Code using command "abp get-source Volo.Chat" in project "Volo.Chat.Blazor.Server.Host" asking for "AbpLicenseCode" in file in file "AppSettings.json". I used "API Key " from Profile "My Organizations" section of ABP.IO. But ABP's license server is rejecting with ABP-LIC-0017.

Please suggest me how to Resolve this issue.

when i am running my project with Startup Project "Volo.Chat.Blazor.Server.Host", Its stopped in Program.cs File on Highlighted location "** await app.InitializeApplicationAsync();**" in below code

using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Serilog; using Serilog.Events;

namespace Volo.Chat.Blazor.Server.Host;

public class Program { public async static Task<int> Main(string[] args) { Log.Logger = new LoggerConfiguration() #if DEBUG .MinimumLevel.Debug() #else .MinimumLevel.Information() #endif .MinimumLevel.Override("Microsoft", LogEventLevel.Information) .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) .Enrich.FromLogContext() .WriteTo.Async(c => c.File("Logs/logs.txt")) #if DEBUG .WriteTo.Async(c => c.Console()) #endif .CreateLogger();

    try
    {
        Log.Information("Starting web host.");
        var builder = WebApplication.CreateBuilder(args);
        builder.Host
            .AddAppSettingsSecretsJson()
            .UseAutofac()
            .UseSerilog();
        await builder.AddApplicationAsync&lt;ChatBlazorHostModule&gt;();
        var app = builder.Build();

** await app.InitializeApplicationAsync();** await app.RunAsync(); return 0; } catch (Exception ex) { Log.Fatal(ex, "Host terminated unexpectedly!"); return 1; } finally { Log.CloseAndFlush(); } } }

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

2 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • ABP-LIC-0017 in this scenario typically happens because the value you put into AbpLicenseCode is not the correct license code format.
      The API Key you see under Profile → My Organizations on abp.io is mainly for NuGet feed access / tooling, and it is not the same thing as the runtime application license code expected by AbpLicenseCode.

    • In an ABP Commercial module solution (like Volo.Chat), the license check is performed during:

    await app.InitializeApplicationAsync();
    

    so the app stops there when license validation fails.

    What to do (definitive steps)

    1. Remove the API Key value from AbpLicenseCode
      • In Volo.Chat.Blazor.Server.Host/appsettings.json (or wherever you set it), remove/replace:
    {
           "AbpLicenseCode": "<<<YOUR API KEY>>>"
         }
    
    1. Use the real ABP Commercial License Code

      • You must obtain the actual license code for your organization/license and put that into AbpLicenseCode (as a single line, no extra spaces/newlines).
      • After updating, run again.
    2. If you don’t have that license code / your license doesn’t include Volo.Chat

      • Then the license server will keep rejecting the request and the app will not start.
      • In that case, you need your organization’s license to include the product/module you downloaded (Volo.Chat) and then use the corresponding license code.
    3. Recommended: don’t store it in appsettings.json

      • Set it as an environment variable instead:
        • Name: AbpLicenseCode
        • Value: <your real ABP license code>
    4. If you still get ABP-LIC-0017 after using the correct license code

      • This becomes an account/license-side issue (wrong organization/license, expired license, etc.). The only correct resolution is to contact ABP/Volosoft support with your license details.

    Sources

    • https://abp.io/docs/latest/others/free-licenses-vs-pro-licenses
    • https://abp.io/contact

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Hi,

    The value you used is the wrong one. The API Key on the My Organizations page is used for commercial package access (NuGet feed), it is not the AbpLicenseCode. That's why the license check rejects it with ABP-LIC-0017 and the app stops at InitializeApplicationAsync.

    The AbpLicenseCode is a long Base64 string generated for your organization. It is not shown on the My Organizations page; the CLI / ABP Studio obtains it from the account service when you create a Pro solution while logged in, and writes it into the generated appsettings.secrets.json file.

    So you can copy it from the appsettings.secrets.json of any Pro solution created for your organization:

    {
      "AbpLicenseCode": "<copy the value from your solution's appsettings.secrets.json>"
    }
    

    If you don't have such a solution yet, run abp login <username> and create one with abp new, then take the value from the generated appsettings.secrets.json and put it into the Volo.Chat.Blazor.Server.Host settings.

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on September 21, 2026, 06:18
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.