Open Closed

Blazor Server Chat Not Working #4329


User avatar
0
coskunkula created
  • ABP Framework version: v7.0.0

  • UI type: Blazor Server

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): no

  • Exception message and stack trace:

  • [ERR] Unhandled exception in circuit 'xOJ0LHCyhNfGn_bQkboi-K3dVkL2K4jcqtZIBS69K9U'. System.InvalidOperationException: Cannot provide a value for property 'ContactAppService' on type 'Volo.Chat.Blazor.Server.Components.BlazorServerMessagesToolbarItem'. There is no registered service of type 'Volo.Chat.Users.IContactAppService'. at Microsoft.AspNetCore.Components.ComponentFactory.<>c__DisplayClass7_0.<CreateInitializer>g__Initialize|1(IServiceProvider serviceProvider, IComponent component) at Microsoft.AspNetCore.Components.ComponentFactory.PerformPropertyInjection(IServiceProvider serviceProvider, IComponent instance) at Microsoft.AspNetCore.Components.ComponentFactory.InstantiateComponent(IServiceProvider serviceProvider, Type componentType) at Microsoft.AspNetCore.Components.RenderTree.Renderer.InstantiateChildComponentOnFrame(RenderTreeFrame& frame, Int32 parentComponentId) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewComponentFrame(DiffContext& diffContext, Int32 frameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewSubtree(DiffContext& diffContext, Int32 frameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(DiffContext& diffContext, Int32 newFrameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, Int32 componentId, ArrayRange1 oldTree, ArrayRange1 newTree) at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException) at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()

  • Steps to reproduce the issue:"

  • Merhabalar,

  • abp suite kullanarak blazor server projesi oluşturuyorum.

  • chat modülünü ekliyorum.

  • ayarlardan sohbeti etkinleştiriyorum.

  • bu işlemden sonra uygulama çalıştıktan sonra uygulama hiçbir yere tıklayamıyorum. her yer çalışmaz hale geliyor. Logs/logs.txt dosyasında ki son kayıtları yukarda ekledim.

  • acaba ne yapmam gerekiyor?

translate : Hello,

I am creating a blazor server project using abp suite.

I am adding the chat module.

I enable chat in settings.

after this process after the application runs, the application cannot click anywhere. everywhere is inoperable. I added the last logs in the logs/logs.txt file above.

what should i do?


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

    hi

    There is no registered service of type 'Volo.Chat.Users.IContactAppService'. I am adding the chat module.

    This seems to be a module dependency problem. Please check whether each layered module depends on the Chat module.

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