I added a mapping to the CustomDtoMapper class and started getting the error below: Failed to Emit module:'xxxx.Application'
A sample of the mapping I added to the CustomDtoMapping class was:
Mapper.CreateMap<CreateLoanRequestInput, LoanRequest>()
.ForMember(dest => dest.RepaymentCycle, opts => opts.MapFrom(src => (RepaymentCycle)src.RepaymentCycle))
.ForMember(dest => dest.LoanApplicationStatus, opts => opts.UseValue(LoanApplicationStatus.Pending ))
.ForMember(dest => dest.DisbursementType, opts => opts.MapFrom(src => (DisbursementType)src.DisbursementType));
Please help me.
5 Answer(s)
-
0
Hi,
Do you get it when building the project or at runtime ?
-
0
I get this error when building the project.
-
0
Hi,
It seems like it's related to Visual Studio. Which version of visual studio do you use ?
If it is VS 2015, try to update it.
-
0
I use visual studio 2015 community edition. What can I do to fix this? I can't keep on replacing the application project again with an older version.
-
0
Hi,
Does your project build when you remove those lines ? You dont need to replace application project.
Just try to update your visual studio. To do that, in Visual studio click Tools > Extensions & Updates > select updates on the left menu and then click update on visual studio update if there is one.