CSLA Debug Mode Error

CSLA Debug Mode Error

Old forum URL: forums.lhotka.net/forums/t/4306.aspx


SouthSpawn posted on Wednesday, February 06, 2008

Hello My Fellow CLSAians

I have a RootObject that has a Child "LineItems" collection attached to it.

I populate the child object from the DataPortal_Fetch command in the "Root Object".

Everything works just fine.

But for some reason, when I rollover my mouse in the "LineItems" property.

I see the following error.
 
"_addressesRO = Count = Exception of type: '{System.TypeLoadException}' occurred."

What is this?
 
Mark

RockfordLhotka replied on Thursday, February 07, 2008

Visual Studio has a concept called data visualization that is used to view values in the debugger. Each data type has a visualizer, and you can actually create your own visualizers if you want to display a type's data differently.

Sometimes visualizers have a hard time displaying data - especially when collections, generics and inheritance are involved. That's what you are seeing here, is the default visualizer simply getting confused by the combination of generics and inheritance used to create the collection.

It doesn't mean there's anything wrong with the collection - you are just hitting a limitation of the visualizer in VS.

Copyright (c) Marimer LLC