Hi, I am new in AspNetZero. I am working with ABP 7.0.0 Asp Net Core 2.2 & Jquery using NetZero. I created some entities with RAD tool and they worked well, but after upgrading all of my NUGET packages EDIT does not work. The error in Log.txt is:
ERROR 2019-07-18 11:04:38,430 [43 ] Mvc.ExceptionHandling.AbpExceptionFilter - Missing type map configuration or unsupported mapping.
Mapping types: CilentGroup -> CreateOrEditCilentGroupDto TS.MainDemo.Common.CilentGroup -> TS.MainDemo.Common.Dtos.CreateOrEditCilentGroupDto AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.
Mapping types: CilentGroup -> CreateOrEditCilentGroupDto TS.MainDemo.Common.CilentGroup -> TS.MainDemo.Common.Dtos.CreateOrEditCilentGroupDto at lambda_method(Closure , CilentGroup , CreateOrEditCilentGroupDto , ResolutionContext ) at lambda_method(Closure , Object , Object , ResolutionContext ) at AutoMapper.Mapper.AutoMapper.IMapper.Map[TDestination](Object source) in C:\projects\automapper\src\AutoMapper\Mapper.cs:line 212 at TS.MainDemo.Common.CilentGroupsAppService.GetCilentGroupForEdit(EntityDto`1 input) in C:\1\MainDemo\MainDemo\aspnet-core\src\TS.MainDemo.Application\Common\CilentGroupsAppService.cs:line 81 at lambda_method(Closure , Object ) at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextExceptionFilterAsync()
2 Answer(s)
-
0
CilentGroup -> CreateOrEditCilentGroupDto
Have you added the Automapper configuration?
see: https://aspnetboilerplate.com/Pages/Documents/Object-To-Object-Mapping#creating-mappings
-
0
I added configuration.CreateMap<CilentGroup, CreateOrEditCilentGroupDto>(); in CustomDtoMapper.cs and the problem solved. But i thought RAD tool has added the mapper.
Thanks a lot