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<ChatBlazorHostModule>();
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(); } } }
2 Answer(s)
-
0
ABP-LIC-0017 in this scenario typically happens because the value you put into
AbpLicenseCodeis 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 byAbpLicenseCode.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)
- Remove the API Key value from
AbpLicenseCode- In
Volo.Chat.Blazor.Server.Host/appsettings.json(or wherever you set it), remove/replace:
- In
{ "AbpLicenseCode": "<<<YOUR API KEY>>>" }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.
- You must obtain the actual license code for your organization/license and put that into
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.
Recommended: don’t store it in
appsettings.json- Set it as an environment variable instead:
- Name:
AbpLicenseCode - Value:
<your real ABP license code>
- Name:
- Set it as an environment variable instead:
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) -
0
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 withABP-LIC-0017and the app stops atInitializeApplicationAsync.The
AbpLicenseCodeis 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 generatedappsettings.secrets.jsonfile.So you can copy it from the
appsettings.secrets.jsonof 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 withabp new, then take the value from the generatedappsettings.secrets.jsonand put it into theVolo.Chat.Blazor.Server.Hostsettings.Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)