Open Closed

License code to explore modules #10969


User avatar
0
sathish19118 created

I’m trying to add the Chat module to the default bookstore template and have followed the documentation below:

https://abp.io/docs/latest/modules/chat

I was able to update the database tables using a migration. However, when I ran the API, the application crashed without displaying anything in the browser. With the help of the ABP AI Agent, I found that the issue might be caused by a missing license code in the application. I then used the API key you shared for the trial version, but I encountered the same issue again.

I would like to understand what might be going wrong. Is a license code different from an API key?

Can I explore the Pro modules using a trial license?

It would also be helpful if you could share comprehensive documentation on adding modules to an existing template, especially when using an Angular front end.

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
    • Chat module is a Pro (Commercial) module and it requires a valid commercial license at runtime. The docs explicitly state: “You must have an ABP Team or a higher license to use this module.” If the license check fails, the host can stop during application initialization (commonly around InitializeApplicationAsync()), which can look like “crashed without showing anything”.

    • Yes — “API Key” and AbpLicenseCode are different things.

      • The API Key you see on abp.io under your organization/profile is mainly for commercial package access / tooling (e.g., downloading packages/source).
      • The runtime license string expected by the application is AbpLicenseCode (a long encoded value). Putting the API Key into AbpLicenseCode will fail license validation (a known case results in license rejection such as ABP-LIC-0017 and the app stops during initialization).
    • What to do in your app (Bookstore + Angular)

      1. Ensure you have a license that includes Volo.Chat (ABP Team or higher).
      2. Put the real AbpLicenseCode value into configuration (preferably appsettings.secrets.json or an environment variable named AbpLicenseCode), not the API Key.
      3. Restart the host; if the license is correct, the app should pass initialization.
    • Trial license & exploring Pro modules

      • Whether you can use Pro modules with a trial depends on the trial’s terms and what is enabled for your organization/license. This is a licensing/billing topic and must be checked by the ABP team for your account: https://abp.io/contact
    • Adding modules to an existing solution (general, including Angular)

      • Use the module’s installation doc (like Chat’s) and also follow ABP’s modularity conventions (module dependencies, migrations, UI package setup, etc.). These are the closest “comprehensive” official starting points:
        • ABP Module system basics: https://abp.io/docs/latest/framework/architecture/modularity/basics
        • ABP Angular UI docs (overview/entry point): https://abp.io/docs/latest/ui/angular/overview

    Sources:

    • https://abp.io/docs/latest/modules/chat
    • https://abp.io/docs/10.7/modules/chat
    • https://abp.io/modules/Volo.Chat
    • https://abp.io/pricing
    • https://abp.io/docs/latest/framework/architecture/modularity/basics
    • https://abp.io/docs/latest/ui/angular/overview
    • 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 license code and the API key are different. The API host reads the license code from the AbpLicenseCode setting at startup, usually in appsettings.secrets.json. An API key won't work there.

    The free trial gives you a 30-day Team license, and Team includes Chat.

    If your Bookstore solution was created with the free template, use Upgrade to Pro in ABP Studio or the abp upgrade command first. It adds the Pro NuGet source and creates the appsettings.secrets.json files with your license code: https://abp.io/docs/latest/guides/migrating-from-open-source

    To add a module to an existing solution, see Import a Module in ABP Studio. The Chat docs cover the server setup and the Angular setup.

    If the host still stops, could you email the following to liming.ma@volosoft.com:

    1. The startup error and stack trace from Logs/logs.txt in the API host project, or from the console output.
    2. Your ABP version.
    3. How you created the Bookstore solution (ABP Studio or CLI, free or Pro template).

    Please remove any license code, API key, and connection string from the logs before sending.

    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 v11.1.0-preview. Updated on November 20, 2026, 13:33
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.