Hi SF Team,
I have created an SF User control which contains CampaignSalesBO (Child BO). I have placed the user control on a SF Form which contains CampaignContactsBO (Parent BO). Then I configured the BOTranslations for the user control using the wizard. When I attempt to load the form I get the following error. I don't know what I am doing wrong.
As always thank you for the help!
Jeff
Object of type 'AutoDialer.CampaignContactsBO' cannot be converted to type 'AutoDialer.CampaignsSalesBO'.
Exception (ArgumentException): Source="mscorlib"; Target=null; Tag=null; ParamName=null;
Message = "Object of type 'AutoDialer.CampaignContactsBO' cannot be converted to type 'AutoDialer.CampaignsSalesBO'."
Environment: ThreadIdentity="" DateTime=["2008-08-21 23:11:13.343"] ThreadName=null WindowsIdentity="STRUSS\JPagley" ThreadId="10" DomainName="AutoDialer.vshost.exe" OSVersion=["Microsoft Windows NT 5.1.2600 Service Pack 3"] MachineName="1LPJPAGLEY"
UserName="JPagley"
Remaining Stack Trace - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
at System.Reflection.RtFieldInfo.InternalSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean doVisibilityCheck, Boolean doCheckConsistency)
at System.Reflection.RtFieldInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
at MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslator.SetBusinessObjectReference(ContainerControl ParentControl, BusinessLayer SourceBusinessObject, String DestinationBusinessObjectName)
at MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslator.TranslateBusinessObjects(BusinessObjectTranslationCollection Translations, ContainerControl SourceContainer, ContainerControl DestinationContainer)
at MicroFour.StrataFrame.UI.Windows.Forms.UserControl.TranslateBusinessObjects()
at MicroFour.StrataFrame.UI.Windows.Forms.UserControl.InitializeObject()
at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects()
at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)