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)
-
0
- 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:
- Ensure ABP CLI is logged in with your licensed (non-trial) account: abp logout abp login {username} -p {password} -o {organization-name}
- 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.)
- 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
- 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.
-
0
hi
You can create a new and the same name commercial project and check it in the
appsettings.jsonfile.Thanks.