Open Closed

Blazor server Startup failed after add chat and cms modules to a microservice by using abp suite #4143


User avatar
0
mc86 created
  • ABP Framework version: v6.0.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • [blazor_de264e9c-4]: [08:47:51 FTL] CP.Blazor terminated unexpectedly! [blazor_de264e9c-4]: Volo.Abp.AbpInitializationException: An error occurred during ConfigureServices phase of the module Volo.Abp.AspNetCore.Components.WebAssembly.AbpAspNetCoreComponentsWebAssemblyModule, Volo.Abp.AspNetCore.Components.WebAssembly, Version=6.0.1.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. [blazor_de264e9c-4]: ---> System.InvalidOperationException: Could not find singleton service: Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder, Microsoft.AspNetCore.Components.WebAssembly, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 [blazor_de264e9c-4]: at Microsoft.Extensions.DependencyInjection.ServiceCollectionCommonExtensions.GetSingletonInstance[T](IServiceCollection services) [blazor_de264e9c-4]: at Microsoft.Extensions.DependencyInjection.AbpWebAssemblyServiceCollectionExtensions.GetHostBuilder(IServiceCollection services) [blazor_de264e9c-4]: at Volo.Abp.AspNetCore.Components.WebAssembly.AbpAspNetCoreComponentsWebAssemblyModule.ConfigureServices(ServiceConfigurationContext context) [blazor_de264e9c-4]: at Volo.Abp.AbpApplicationBase.ConfigureServices() [blazor_de264e9c-4]: --- End of inner exception stack trace --- [blazor_de264e9c-4]: at Volo.Abp.AbpApplicationBase.ConfigureServices() [blazor_de264e9c-4]: at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) [blazor_de264e9c-4]: at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) [blazor_de264e9c-4]: at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action1 optionsAction) [blazor_de264e9c-4]: at Volo.Abp.AbpApplicationFactory.Create[TStartupModule](IServiceCollection services, Action1 optionsAction) [blazor_de264e9c-4]: at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplication[TStartupModule](IServiceCollection services, Action1 optionsAction) [blazor_de264e9c-4]: at CP.Blazor.Startup.ConfigureServices(IServiceCollection services) in D:\CP\apps\blazor-server\src\CP.Blazor\Startup.cs:line 11 [blazor_de264e9c-4]: at System.RuntimeMethodHandle.InvokeMethod(Object target, Span1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) [blazor_de264e9c-4]: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) [blazor_de264e9c-4]: at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services) [blazor_de264e9c-4]: at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection) [blazor_de264e9c-4]: at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services) [blazor_de264e9c-4]: at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services) [blazor_de264e9c-4]: at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance) [blazor_de264e9c-4]: at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass13_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services) [blazor_de264e9c-4]: at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider() [blazor_de264e9c-4]: at Microsoft.Extensions.Hosting.HostBuilder.Build() [blazor_de264e9c-4]: at CP.Blazor.Program.Main(String[] args) in D:\CP\apps\blazor-server\src\CP.Blazor\Program.cs:line 21
  • Steps to reproduce the issue:"

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

    hi

    Whats content of D:\CP\apps\blazor-server\src\CP.Blazor\Program.cs and D:\CP\apps\blazor-server\src\CP.Blazor\Startup.cs?

  • User Avatar
    0
    mc86 created

    abp suite added the wasm cmskit dll to a blazor server .

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    https://support.abp.io/QA/Questions/4143#answer-9446240b-da3b-384d-04dc-3a07e40aa2bd

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15