Open Closed

Failed to integrate leptonx for authserver in microservice template #3642


User avatar
0
chenxm created
  • ABP Framework version: v5.3.4
  • UI type: Angular / MVC
  • DB provider: EF Core / MYSQL
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Reference tutorial: https://docs.abp.io/en/commercial/latest/themes/lepton-x/commercial/mvc

Exception:

[18:54:35 DBG] RabbitMQ Queue 'AbpBackgroundJobs.Volo.Abp.Emailing.BackgroundEmailSendingJobArgs' has 0 messages and 0 consumers. [18:54:35 FTL] PlatCloud.AuthServer terminated unexpectedly! Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.IdentityServer.AbpIdentityServerDomainModule, Volo.Abp.IdentityServer.Domain, Version=5.3.4.0, Culture=neutral, PublicKeyToken=null: Method not found: 'System.Threading.Tasks.Task Volo.Abp.BackgroundWorkers.IBackgroundWorkerManager.AddAsync(Volo.Abp.BackgroundWorkers.IBackgroundWorker)'.. See the inner exception for details. ---> System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task Volo.Abp.BackgroundWorkers.IBackgroundWorkerManager.AddAsync(Volo.Abp.BackgroundWorkers.IBackgroundWorker)'. at Volo.Abp.IdentityServer.AbpIdentityServerDomainModule.OnApplicationInitializationAsync(ApplicationInitializationContext context) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at Volo.Abp.IdentityServer.AbpIdentityServerDomainModule.OnApplicationInitializationAsync(ApplicationInitializationContext context) at Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor.InitializeAsync(ApplicationInitializationContext context, IAbpModule module) at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context) --- End of inner exception stack trace --- at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context) at Volo.Abp.AbpApplicationBase.InitializeModulesAsync() at Volo.Abp.AbpApplicationWithExternalServiceProvider.InitializeAsync(IServiceProvider serviceProvider) at Microsoft.AspNetCore.Builder.AbpApplicationBuilderExtensions.InitializeApplicationAsync(IApplicationBuilder app) at PlatCloud.AuthServer.Program.Main(String[] args) in /Volumes/development/projects/PlatCloud/apps/auth-server/src/PlatCloud.AuthServer/Program.cs:line 29


3 Answer(s)
  • User Avatar
    0
    chenxm created

    apps/authserver:

    1. <ItemGroup> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="1.0.0-rc.*" /> </ItemGroup>

    2. [DependsOn(... typeof(AbpAspNetCoreMvcUiLeptonXThemeModule), ... )]

    3. Configure<LeptonXThemeOptions>(options => { options.DefaultStyle = LeptonXStyleNames.System; });

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @chenxm, when you specified the LeptonX Theme package version as 1.0.0-rc.*, it will get the latest preview version which is 1.0.0-rc.4 for now. And this version is not fully compatible with v5.3.4 of ABP Framework.

    So you either need to upgrade your ABP packages to v6.0 or downgrade the LeptonX Theme package version to 1.0.0-rc.1.

  • User Avatar
    0
    chenxm created

    Thanks for your help。

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11