By Daniel Essin - 8/17/2006
What does "Unable to case object of type "DM.Library.Programs" to type "System.ComponentModel.Component"
Programs is a BO built by the mapper.
Thank you.
|
By Trent L. Taylor - 8/18/2006
All business objects are inherited from MarshalByValueComponent and cannot be typed as a Component. Since implicit type conversions are not allowed you will have to type the reference to prevent the error. Regardless, you cannot type a business object as a Component since it inherits from MarshalByValuComponent.
|
By StrataFrame Team - 8/18/2006
If you're trying to reference it at a System.ComponentModel.Component, then you'll need to change you're reference to a System.ComponentModel.IComponent, since that's what is used by both Component and MarshalByValueComponent.
|
By Daniel Essin - 8/22/2006
The point of the question is that I didn't make any reference to component anything. I just created a bo from the SFBO template and populated it with the mapper and then got this error.
|
By StrataFrame Team - 8/23/2006
I'll check through the BOMapper and the Extensibility solution to make sure we're not referencing it as a System.ComponentModel.Component. Thanks for the heads up.
|