| | | StrataFrame User
       
Group: Forum Members Last Login: 05/25/2007 3:34:57 PM Posts: 235, Visits: 309 |
| 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. |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Yesterday @ 7:08:30 PM Posts: 4,811, Visits: 4,781 |
| | 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. |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 12/02/2008 4:42:46 PM Posts: 2,686, Visits: 1,890 |
| 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.
www.bungie.net |
| | | | StrataFrame User
       
Group: Forum Members Last Login: 05/25/2007 3:34:57 PM Posts: 235, Visits: 309 |
| | 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. |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 12/02/2008 4:42:46 PM Posts: 2,686, Visits: 1,890 |
| 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.
www.bungie.net |
| |
|
|