Starts in:
1 DAY
20 HRS
59 MIN
21 SEC
Starts in:
1 D
20 H
59 M
21 S
Open Closed

Volo Chat in ABP commercial page giving 500 error on loading. #3097


User avatar
0
shalin.jirawla created
  • ABP Framework version: v4.3.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": { "ActivatorChain": "Volo.Chat.Users.ContactController -\u003E Volo.Chat.Users.ContactAppService" }, "validationErrors": null }
An exception was thrown while activating Volo.Chat.Users.ContactController -> Volo.Chat.Users.ContactAppService.
Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Chat.Users.ContactController -> Volo.Chat.Users.ContactAppService.
 ---> Autofac.Core.DependencyResolutionException: None of the constructors found with 'Volo.Abp.Autofac.AbpAutofacConstructorFinder' on type 'Volo.Chat.Users.ContactAppService' can be invoked with the available services and parameters:
Cannot resolve parameter 'Volo.Chat.Conversations.IConversationRepository conversationRepository' of constructor 'Void .ctor(Volo.Chat.Users.IChatUserLookupService, Volo.Chat.Conversations.IConversationRepository)'.
   at Autofac.Core.Activators.Reflection.ReflectionActivator.GetAllBindings(ConstructorBinder[] availableConstructors, IComponentContext context, IEnumerable`1 parameters)
   at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
   at Autofac.Core.Activators.Reflection.ReflectionActivator.<ConfigurePipeline>b__11_0(ResolveRequestContext ctxt, Action`1 next)
   at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Builder.RegistrationBuilder`3.&lt;&gt;c__DisplayClass41_0.&lt;PropertiesAutowired&gt;b__0(ResolveRequestContext ctxt, Action`1 next)
   at Autofac.Extras.DynamicProxy.RegistrationExtensions.<>c__DisplayClass8_0`3.&lt;EnableInterfaceInterceptors&gt;b__1(ResolveRequestContext ctxt, Action`1 next)
   at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   --- End of inner exception stack trace ---
   at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request)
   at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request)
   at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
   at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Microsoft.AspNetCore.Mvc.Controllers.ServiceBasedControllerActivator.Create(ControllerContext actionContext)
   at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.<>c__DisplayClass5_0.<CreateControllerFactory>g__CreateController|0(ControllerContext controllerContext)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
  • Steps to reproduce the issue:" 1- Run ABP Suite

2- Install chat as project

3- Successfully Created 4 Tables in Database

4- Enabled Chat Feature from manage host features

5- When I try to click on chat icon, it gives 500 error while Loading Chat-module api.

I tried to find the documentation but couldnt find anything related to this issue. Any help is appreciated.


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

    HI

    Did you depend on the modules of Chat? EG domain efcore application modules

  • User Avatar
    0
    shalin.jirawla created

    HI

    Did you depend on the modules of Chat? EG domain efcore application modules

    No,I Didn't Change in domain,efcore and application module.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You should depend on Chat's modules in your layered modules just like any other modules.

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