I know, call me captain obvious but today I spent some time trying to determine why i was receiving the following error:
{"Object of type 'System.Collections.Generic.List`1[AssignedMessageTypes]' cannot be converted to type 'Endpoint'."}
No I know that Lazy loading and remoting do not play well, in fact I actually have some unit tests around some repository calls to ensure that I have eagerly loaded my data. However, I complete forgot to force eager loading on one call and paid the price.
If you ever come across an error like above and you are using remoting with Nhibernate, first thing I would check to see is that all my data is being eagerly loaded.
Hope this helps,
Till next time,
Posted
03-26-2009 9:08 AM
by
Derik Whittaker