AutoMapperMappingException

83 views
Skip to first unread message

Sumit Pathak

unread,
Mar 25, 2022, 6:09:05 AM3/25/22
to AutoMapper-users
Dear all,

I am facing really weird issue with the AutoMapper DLL used in my ASP.Net Web API. Suddenly the below mentioned exception starts getting generated on the server. On replacing the AutoMapper DLL from the backup the exception stops generating. Even though the both the files are exactly same. After some days this exception start generating again. Every time on replacing the AutoMapper DLL from the backup the exception stops generating.

Exception Details:
Target:        System.Collections.Generic.List`1[T] GetById()
Type:        AutoMapperMappingException
Message:        

Mapping types:
IDataReader -> List`1
System.Data.IDataReader -> System.Collections.Generic.List`1[[Repository.ActivityPerformance, Repository, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Destination path:
List`1


Automapper DLL details:
  • Name: AutoMapper.dll
  • Version : 2.2.1.0
I tried to replicate the issue by calling particular web method via application, but for me the exception does not generate. So not able to identify why does this exception generates.

Can anyone please help me out to troubleshoot this issue?

Thanks in advance !

Regards
Sumit
Reply all
Reply to author
Forward
0 new messages