I am trying to integrate Elsa Dshboard to my project.
I was able to intergate the Migration but somehow getting the issue while integrating the Dashboard :
https://elsa-workflows.github.io/elsa-core/docs/guides-dashboard
ComponentNotFoundException: No component for supporting the service Elsa.Dashboard.Areas.Elsa.Controllers.HomeController was found Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, bool ignoreParentContext) Castle.MicroKernel.DefaultKernel.Resolve(Type service, Arguments arguments)
Any help would be highly appreciated.
Also in the start up I added :
// Add services used for the workflows runtime.
services.AddElsa(elsa => elsa.AddEntityFrameworkStores<PostgreSqlContext>(options =>
options.UseNpgsql(_appConfiguration.GetConnectionString("Default"))));
services.AddHttpActivities(options => options.Bind(_appConfiguration.GetSection("Elsa:Http")));
services.AddEmailActivities(options => options.Bind(_appConfiguration.GetSection("Elsa:Smtp")));
services.AddTimerActivities(options => options.Bind(_appConfiguration.GetSection("Elsa:Timers")));
Error I get
AutoMapperMappingException: Missing type map configuration or unsupported mapping. Mapping types: User -> UserLoginInfoDto DOCUHOLD.EDRMS.Authorization.Users.User -> DOCUHOLD.EDRMS.Sessions.Dto.UserLoginInfoDto
20 Answer(s)
-
0
Hi,
I assume you don't have access to source code of
Elsa.Dashboard.Areas.Elsa.Controllers.HomeController
. If so, you can register this controller in the InitializeMethod of your Web Module;IocManager.Register<Elsa.Dashboard.Areas.Elsa.Controllers.HomeController, Elsa.Dashboard.Areas.Elsa.Controllers.HomeController>();
For the second problem, you can define a mapping in the
CustomDtoMapper.cs
-
0
Hi how can i disable wrapper for dont accsess controller
-
0
Hi @murat.yuceer,
Could't understand, could you explain a bit more detailed ?
Thanks.
-
0
i mean for disable abp api response wrapper,
-
0
This is what is happening :
Elsa creates a MapperConfiguration and uses it to create an IMapper, which is registered with IoC. ABP also creates a MapperConfiguration and uses it to create an IMapper, which is also registered. Because the one from Elsa is registered first, anytime something resolves/injects IMapper, it receives the instance from Elsa, which does not contain any of the mapping configuration from ABP.
Any idea or suggestion you can think of ?
-
0
Hi,
It seems like Elsa is also working on this issue https://github.com/elsa-workflows/elsa-core/issues/290. If you can share your project with [email protected], I can also try to find a solution.
Thanks,
-
0
Can you send me an email to share the link to the project , i have already shared it with Elsa to look into it ?
-
0
@maharatha, ELSA looks neat. Please keep the post updated with your progress.
-
0
https://github.com/elsa-workflows/elsa-core/issues/290
-
0
Hi @maharatha
You can share it with [email protected].
-
0
Done
-
0
Thanks @maharatha,
We will get back to you probably on Tuesday.
-
0
Any updates?
-
0
Hi @maharatha,
Sorry, couldn't find a way to do it. We have to wait for https://github.com/elsa-workflows/elsa-core/issues/290
-
0
-
0
Hi @murat.yuceer,
Does your project use v3.1.3 of Microsoft.* NuGet packages ? Latest version of ABP uses that version, maybe Elsa is using a different version.
-
0
Yes i guess elsa and my project use diffirent ef core version so how we can use third party packages if them use diffirent ef core version. For example Hangfire works but i guess its not use ef core
-
0
Hi @murat.yuceer,
As a temporary workaround, you can directly reference this package to your solution.
-
0
Hi Support,
I think I am facing the same issue with IMapper. I am able to configure the elsa in abpbpoilerplate sample templates but when I am trying to configure this in aspnetzero then getting below error.
MissingMethodException: Method not found: 'System.__Canon AutoMapper.IMapper.Map(System.Object)'. Elsa.Services.AutoMapperMapper.Map<TDestination>(object source)
-
0
hi @staffing
Can you share a simple demo to me? [email protected]