Open Closed

How to obtain AbpLicenseCode for appsettings.json configuration #10170


User avatar
0
RETURN-LY created

Hello ABP Support Team, I am trying to configure my ABP Commercial project and need to add the AbpLicenseCode to my appsettings.json file. My Question: Where can I find/generate my AbpLicenseCode value? I have checked my ABP account but I'm not sure where exactly to locate or generate this license code. What I've tried:

Searched the documentation at https://abp.io/docs/latest Looked through my account dashboard Reviewed support questions related to licensing

What I need:

Clear steps to obtain my AbpLicenseCode Confirmation of where in my account I can find this value

Environment:

ABP Framework version: Latest version UI type: Angular Database provider: MS SQL SERVER

Thank you for your assistance.


2 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    1. Solution
    • Your AbpLicenseCode is generated per project name and per license owner organization. The easiest, reliable way to obtain it is to create a new ABP Commercial project with the same project name while logged in with your licensed account, then copy the AbpLicenseCode from the generated appsettings.json.
    • Steps:
      1. Ensure ABP CLI is logged in with your licensed (non-trial) account: abp logout abp login {username} -p {password} -o {organization-name}
      2. Create a temporary new solution using exactly the same project name as your existing project: abp new YourProjectName -t app-pro (Pick the same UI/database options you use, but the codebase details don’t affect the license code; only the project name and organization do.)
      3. Open the newly generated solution’s appsettings.json files (host and any other service if it’s a microservice solution), locate "AbpLicenseCode", and copy the value into your existing project’s corresponding appsettings.json files. Replace all occurrences in all services.
    • Notes:
      • If you previously used a trial license, you must refresh the code as above after purchasing a commercial license; the trial code will fail with LicenseExpired errors.
      • If you use ABP Suite, do a clean reinstall after refreshing your license session to ensure it picks up the new license: abp suite remove abp suite install
    1. Sources
    • https://abp.io/support/questions/3931
    • https://abp.io/docs/latest
    • https://support.abp.io

    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.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can create a new and the same name commercial project and check it in the appsettings.json file.

    Thanks.

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.1.0-preview. Updated on December 03, 2025, 13:19
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.