Open Closed

Issue with Chat module on Blazor wasm project #4426


User avatar
0
listtraderdev2 created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v7.0.1
  • UI type: Blazor Wasm
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Value cannot be null. (Parameter 'str') System.ArgumentNullException: Value cannot be null. (Parameter 'str') at Volo.Abp.Check.NotNull[String](String value, String parameterName) at System.AbpStringExtensions.EnsureEndsWith(String str, Char c, StringComparison comparisonType) at Volo.Chat.Blazor.WebAssembly.Components.BlazorMessagesToolbarItem.SetChatHubConnectionAsync() at Volo.Chat.Blazor.Components.MessagesToolbarItem.OnInitializedAsync() at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync() at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
  • Steps to reproduce the issue:" Add chat module through ABP Suite. Enable the chat feature from the admin menu. Logout and login again. You get the above error in the browser console. I get the above error after adding the Chat feature to my application. I believe the error occurs when this is invoked; Volo.Chat.Users.ContactController.GetTotalUnreadMessageCountAsync. I even get same error on activating chat on the default/blank blazor wasm project.

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

    hi

    Please try to configure the ChatBlazorWebAssemblyOptions

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 13, 2025, 04:08