Open Closed

ABP License issue on CI builds #8485


User avatar
0
naeem76 created
  • ABP Framework version: v9.0.0
  • UI Type: MVC
  • Database System: EF Core PostgreSQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): no - single layer application in this case
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Getting license errors in GitLab CI, wasn't happening before on older .NET - ABP CLI 9.0.2

[11:29:25 ERR] ABP-LIC-ERROR - License check failed for 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX-v4.0.0.0'.
You need to log in using the command `abp login <username>`.
For more information, contact to license@abp.io.

the command

dotnet restore $PROJECT_NAME.csproj --runtime linux-x64
dotnet build $PROJECT_NAME.csproj --configuration Release --no-restore
dotnet run --migrate-database --configuration Release --no-build --no-restore

ASPNETCORE_ENVIRONMENT is set to Production


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    the command

    could you try this

    dotnet run ... --environment Production

  • User Avatar
    0
    naeem76 created

    Solved by using --no-launch-profile For some reason even though the environment was set it was still using the launch profiles

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00