| | | 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: Today @ 4:17:19 AM Posts: 4,379, Visits: 4,420 |
| | 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: Yesterday @ 5:02:56 PM Posts: 2,682, Visits: 1,882 |
| 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: Yesterday @ 5:02:56 PM Posts: 2,682, Visits: 1,882 |
| 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 |
| |
|
|