Base solution for your next web application
Open Closed

Failed to Emit module:'xxxx.Application' #1535


User avatar
0
maddey234 created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Do you get it when building the project or at runtime ?

  • User Avatar
    0
    maddey234 created

    I get this error when building the project.

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    maddey234 created

    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.

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.