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.
2 Answer(s)
-
0
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
AbpLicenseCodeare 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 intoAbpLicenseCodewill fail license validation (a known case results in license rejection such asABP-LIC-0017and the app stops during initialization).
What to do in your app (Bookstore + Angular)
- Ensure you have a license that includes Volo.Chat (ABP Team or higher).
- Put the real
AbpLicenseCodevalue into configuration (preferablyappsettings.secrets.jsonor an environment variable namedAbpLicenseCode), not the API Key. - 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
- 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:
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) -
0
Hi,
The license code and the API key are different. The API host reads the license code from the
AbpLicenseCodesetting at startup, usually inappsettings.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 Proin ABP Studio or theabp upgradecommand first. It adds the Pro NuGet source and creates theappsettings.secrets.jsonfiles with your license code: https://abp.io/docs/latest/guides/migrating-from-open-sourceTo 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:
- The startup error and stack trace from
Logs/logs.txtin the API host project, or from the console output. - Your ABP version.
- 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) - The startup error and stack trace from