StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Please explain messageExpand / Collapse
Author
Message
Posted 08/17/2006 6:52:26 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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.
Post #2259
Posted 08/18/2006 8:41:04 AM


StrataFrame Developer

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.
Post #2266
Posted 08/18/2006 8:47:31 AM


StrataFrame Developer

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
Post #2268
Posted 08/22/2006 7:48:39 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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.
Post #2385
Posted 08/23/2006 8:52:51 AM


StrataFrame Developer

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
Post #2393
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 3:47am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.