Open Closed

Cannot install LeptonX theme #9428


User avatar
0
npnutthapon created

Hello,

I’m upgrading our ABP project from version 3 to version 9. The application previously used the Lepton theme by default, but we now want to switch to LeptonX After following the documentation (https://abp.io/docs/latest/ui-themes/lepton-x/mvc) and running the installation command, the console reports that it unable to find package LeptonX them.

Below is the full log from the installation command.

ABP CLI 9.2.0
Installing 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX' package to the project 'NDWC.Web.Portal'...

Build succeeded in 1.3s
info : X.509 certificate chain validation will use the default trust store selected by .NET for code signing.
info : X.509 certificate chain validation will use the default trust store selected by .NET for timestamping.
info : Adding PackageReference for package 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX' into project 'C:\Users\PhornthepChooleat\source\repos\NDWC-Web3\aspnet-core\src\NDWC.Web.Portal\NDWC.Web.Portal.csproj'.
info : Restoring packages for C:\Users\PhornthepChooleat\source\repos\NDWC-Web3\aspnet-core\src\NDWC.Web.Portal\NDWC.Web.Portal.csproj...
info :   CACHE https://nuget.abp.io/---/v3/package/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json
info :   GET https://api.nuget.org/v3-flatcontainer/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json
info :   NotFound https://api.nuget.org/v3-flatcontainer/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json 342ms
info :   CACHE https://api.nuget.org/v3-flatcontainer/system.io.filesystem.primitives/index.json
info :   GET https://nuget.abp.io/---/v3/package/system.io.filesystem.primitives/index.json
info :   NotFound https://nuget.abp.io/---/v3/package/system.io.filesystem.primitives/index.json 349ms
warn : NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.CSharp.Workspaces 3.3.1 requires Microsoft.CodeAnalysis.Common (= 3.3.1) but version Microsoft.CodeAnalysis.Common 4.0.0 was resolved.
warn : NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.CSharp.Workspaces 3.3.1 requires Microsoft.CodeAnalysis.CSharp (= 3.3.1) but version Microsoft.CodeAnalysis.CSharp 4.0.0 was resolved.
warn : NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.Workspaces.Common 3.3.1 requires Microsoft.CodeAnalysis.Common (= 3.3.1) but version Microsoft.CodeAnalysis.Common 4.0.0 was resolved.
error: NU1102: Unable to find package Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX with version (>= 9.0.4)
error:   - Found 144 version(s) in ABP Commercial NuGet Source [ Nearest version: 4.3.0-preview20250606 ]
error:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages
error:   - Found 0 version(s) in C:\Program Files\dotnet\library-packs
error:   - Found 0 version(s) in nuget.org
info :   CACHE https://api.nuget.org/v3/vulnerabilities/index.json
info :   CACHE https://api.nuget.org/v3-vulnerabilities/2025.06.05.05.42.46/vulnerability.base.json
info :   CACHE https://api.nuget.org/v3-vulnerabilities/2025.06.05.05.42.46/2025.06.06.05.42.49/vulnerability.update.json
warn : NU1701: Package 'Microsoft.AspNet.Identity.Core 2.2.4' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.
warn : NU1701: Package 'Microsoft.AspNet.Identity.EntityFramework 2.2.4' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.
warn : NU1701: Package 'Microsoft.AspNet.Mvc 5.2.7' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.
warn : NU1701: Package 'Microsoft.AspNet.Razor 3.2.7' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.
warn : NU1701: Package 'Microsoft.AspNet.WebPages 3.2.7' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.
warn : NU1701: Package 'Microsoft.Owin 4.2.2' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.
warn : NU1701: Package 'Microsoft.Web.Infrastructure 1.0.0' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.
warn : NU1701: Package 'Owin 1.0.0' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.
warn : NU1701: Package 'rlcx.powertools 1.0.15042' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.
error: Package 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX' is incompatible with 'all' frameworks in project 'C:\Users\PhornthepChooleat\source\repos\NDWC-Web3\aspnet-core\src\NDWC.Web.Portal\NDWC.Web.Portal.csproj'.
Successfully installed.

P.S. I’m already signed in with my ABP Commercial account.


14 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try to change the Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX package version from 9.0.4 to 4.0.4?

    Thanks.

  • User Avatar
    0
    npnutthapon created

    Hi,

    I have installed the Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX package (version 4.0.4) in my web project and updated the WebModule.cs file according to the documentation, replacing: typeof(LeptonThemeManagementWebModule), typeof(AbpAspNetCoreMvcUiLeptonThemeModule) with typeof(AbpAspNetCoreMvcUiLeptonXThemeModule)

    The solution builds successfully, and the application was running normally prior to adding this package. However, after making the above changes, I encountered the following error at runtime.

    Could you please advise whether I also need to update the version of Volo.Abp.EntityFrameworkCore to ensure compatibility with the LeptonX theme? If so, which version should I use?

    If the issue is unrelated to the package version, I would appreciate any guidance you can provide on how to resolve it.

    Thank you for your assistance. Please let me know if you need any further information or have any questions.

    [15:37:20 INF] Starting web host.
    [15:37:31 FTL] Host terminated unexpectedly!
    Volo.Abp.AbpInitializationException: An error occurred during ConfigureServices phase of the module Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule, Volo.Abp.EntityFrameworkCore, Version=9.0.3.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details.
     ---> System.TypeLoadException: Method 'GetWaitingEventsAsync' in type 'Volo.Abp.EntityFrameworkCore.DistributedEvents.DbContextEventOutbox`1' from assembly 'Volo.Abp.EntityFrameworkCore, Version=9.0.3.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
       at Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule.ConfigureServices(ServiceConfigurationContext context)
       at Volo.Abp.AbpApplicationBase.ConfigureServices()
       --- End of inner exception stack trace ---
       at Volo.Abp.AbpApplicationBase.ConfigureServices()
       at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action`1 optionsAction)
       at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action`1 optionsAction)
       at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action`1 optionsAction)
       at Volo.Abp.AbpApplicationFactory.Create[TStartupModule](IServiceCollection services, Action`1 optionsAction)
       at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplication[TStartupModule](IServiceCollection services, Action`1 optionsAction)
       at NDWC.Web.Portal.Startup.ConfigureServices(IServiceCollection services) in C:\Users\PhornthepChooleat\source\repos\NDWC-Web\aspnet-core\src\NDWC.Web.Portal\Startup.cs:line 13
       at InvokeStub_Startup.ConfigureServices(Object, Span`1)
       at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
       at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance)
       at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass7_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services)
       at Microsoft.Extensions.Hosting.HostBuilder.InitializeServiceProvider()
       at Microsoft.Extensions.Hosting.HostBuilder.Build()
       at NDWC.Web.Portal.Program.Main(String[] args) in C:\Users\PhornthepChooleat\source\repos\NDWC-Web\aspnet-core\src\NDWC.Web.Portal\Program.cs:line 30
    
    C:\Users\PhornthepChooleat\source\repos\NDWC-Web\aspnet-core\src\NDWC.Web.Portal\bin\Debug\net9.0\NDWC.Web.Portal.exe (process 19436) exited with code 1 (0x1).
    To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
    Press any key to close this window . . .
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share your project source code?

    liming.ma@volosoft.com

    Thanks.

  • User Avatar
    0
    npnutthapon created

    I have already sent you an email.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share the whole project?

    I need to build and run it.

    Thanks.

    <ProjectReference Include="..\NDWC.Application\NDWC.Application.csproj" />
    <ProjectReference Include="..\NDWC.HttpApi\NDWC.HttpApi.csproj" />
    <ProjectReference Include="..\NDWC.EntityFrameworkCore.DbMigrations\NDWC.EntityFrameworkCore.DbMigrations.csproj" />
    
  • User Avatar
    0
    npnutthapon created

    Hi,

    Unfortunately, I’m very sorry to say that we’re unable to provide any additional source code at this time. The code is currently being used in a production environment, and sharing other parts of it may raise concerns with our customers.

    Is there any alternative way we could work around this? I fully understand that not having access to the complete source code may make it more difficult to provide support, but we’ll do our best to supply any additional information you may need to help us resolve this issue.

    Thank you for your understanding.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I can run your web project without any errors.

    Can you try to run abp clean command and dotnet build dotnet run command?

  • User Avatar
    0
    npnutthapon created

    Hi,

    Although the project builds successfully, the web application fails to run. I suspect this may be due to version incompatibilities between some libraries. Could you please provide the versions of the library dependencies you used to build the web project?

    Thanks.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you run dotnet package list and share the output?

    dotnet package list --project  NDWC.Web.Portal.csproj
    Project 'NDWC.Web.Portal' has the following package references
       [net9.0]: 
       Top-level Package                                       Requested   Resolved
       > Hangfire.SqlServer                                    1.8.14      1.8.14  
       > IdentityServer4.AccessTokenValidation                 3.0.1       3.0.1   
       > Microsoft.AspNet.Identity.Core                        2.2.4       2.2.4   
       > Microsoft.AspNetCore.OpenApi                          9.0.5       9.0.5   
       > Microsoft.Extensions.FileProviders.Embedded           9.0.4       9.0.4   
       > Microsoft.Extensions.Identity.Core                    9.0.4       9.0.4   
       > Microsoft.Owin                                        4.2.2       4.2.2   
       > Microsoft.VisualStudio.Web.CodeGeneration.Design      3.1.5       3.1.5   
       > Moment.js                                             2.30.1      2.30.1  
       > Serilog                                               2.9.0       2.9.0   
       > Serilog.Extensions.Hosting                            3.1.0       3.1.0   
       > Serilog.Sinks.Console                                 3.1.1       3.1.1   
       > Serilog.Sinks.File                                    4.1.0       4.1.0   
       > Swashbuckle.AspNetCore                                5.5.0       5.5.0   
       > Volo.Abp.Account.Pro.Admin.Web                        9.0.4       9.0.4   
       > Volo.Abp.Account.Pro.Public.Web.IdentityServer        9.0.4       9.0.4   
       > Volo.Abp.AspNetCore.Authentication.JwtBearer          9.0.4       9.0.4   
       > Volo.Abp.AspNetCore.Mvc                               9.0.4       9.0.4   
       > Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX              4.0.4       4.0.4   
       > Volo.Abp.AuditLogging.Web                             9.0.4       9.0.4   
       > Volo.Abp.Autofac                                      9.0.4       9.0.4   
       > Volo.Abp.BackgroundJobs.HangFire                      9.0.4       9.0.4   
       > Volo.Abp.FeatureManagement.Web                        9.0.4       9.0.4   
       > Volo.Abp.Identity.Pro.Web                             9.0.4       9.0.4   
       > Volo.Abp.IdentityServer.Web                           9.0.4       9.0.4   
       > Volo.Abp.LanguageManagement.Web                       9.0.4       9.0.4   
       > Volo.Abp.TextTemplateManagement.Web                   9.0.4       9.0.4   
       > Volo.Saas.Host.Web                                    9.0.4       9.0.4   
    
    
  • User Avatar
    0
    npnutthapon created

    hi,

    here is mine

    Project 'NDWC.Web.Portal' has the following package references
       [net9.0]:
       Top-level Package                                       Requested   Resolved
       > Hangfire.SqlServer                                    1.8.14      1.8.14
       > IdentityServer4.AccessTokenValidation                 3.0.1       3.0.1
       > Microsoft.AspNet.Identity.Core                        2.2.4       2.2.4
       > Microsoft.Extensions.FileProviders.Embedded           9.0.4       9.0.4
       > Microsoft.Extensions.Identity.Core                    9.0.4       9.0.4
       > Microsoft.Owin                                        4.2.2       4.2.2
       > Microsoft.VisualStudio.Web.CodeGeneration.Design      3.1.5       3.1.5
       > Moment.js                                             2.30.1      2.30.1
       > Serilog                                               2.9.0       2.9.0
       > Serilog.Extensions.Hosting                            3.1.0       3.1.0
       > Serilog.Sinks.Console                                 3.1.1       3.1.1
       > Serilog.Sinks.File                                    4.1.0       4.1.0
       > Swashbuckle.AspNetCore                                5.5.0       5.5.0
       > Volo.Abp.Account.Pro.Admin.Web                        9.0.4       9.0.4
       > Volo.Abp.Account.Pro.Public.Web.IdentityServer        9.0.4       9.0.4
       > Volo.Abp.AspNetCore.Authentication.JwtBearer          9.0.4       9.0.4
       > Volo.Abp.AspNetCore.Mvc                               9.0.4       9.0.4
       > Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX              4.0.4       4.0.4
       > Volo.Abp.AuditLogging.Web                             9.0.4       9.0.4
       > Volo.Abp.Autofac                                      9.0.4       9.0.4
       > Volo.Abp.BackgroundJobs.HangFire                      9.0.4       9.0.4
       > Volo.Abp.FeatureManagement.Web                        9.0.4       9.0.4
       > Volo.Abp.Identity.Pro.Web                             9.0.4       9.0.4
       > Volo.Abp.IdentityServer.Web                           9.0.4       9.0.4
       > Volo.Abp.LanguageManagement.Web                       9.0.4       9.0.4
       > Volo.Abp.TextTemplateManagement.Web                   9.0.4       9.0.4
       > Volo.Saas.Host.Web                                    9.0.4       9.0.4
    

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Join meet and share your screen.

    Thanks.

    https://us05web.zoom.us/j/87008122641?pwd=dNZKPFI9taMsaDkRRe4Rsq5bhKvgya.1

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Fixed by remote meeting.

    The package versions are not same.

  • User Avatar
    0
    npnutthapon created

    Thanks a lot (:

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : )

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.0.0-preview. Updated on June 20, 2025, 11:20