Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error in AutoMapper
Message
 
 
General information
Forum:
ASP.NET
Category:
Object Oriented Programming
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01605838
Message ID:
01606028
Views:
43
>Hmm. Well somewhere AutoMapper is finding a ItemType.ItemType.
>Looks like ItemType property can be found in .NET in :
>
>Strongly typed data
>ListViewItem
>DataListItem
>DataGridItem
>
>and maybe more.
>Can you work out which applies in this case ?
>If you can't find anything that maybe there's a bug in AutoMapper - perhaps post a question on their mailing list....

I think it's a bug in AutoMapper, I'll try contacting the author. Right now I am getting yet another error, but this time it is absolutely not helpful
AutoMapper.AutoMapperMappingException was unhandled by user code
  HResult=-2146233088
  Message=Value supplied is of type System.Boolean but expected System.Byte.
Change the value resolver source type, or redirect the source value supplied to the value resolver using FromMember.
Value supplied is of type System.Boolean but expected System.Byte.
Change the value resolver source type, or redirect the source value supplied to the value resolver using FromMember.
So, how would I know which column generated this error. I'm getting the error on this line
ItemViewModel itemViewModel = AutoMapper.Mapper.Map<Items, ItemViewModel>(item);
and both classes have lots of properties :(
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform