﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » DevExpress ComboBoxEdit Population Problem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 25 May 2026 11:34:19 GMT</lastBuildDate><ttl>20</ttl><item><title>DevExpress ComboBoxEdit Population Problem</title><link>http://forum.strataframe.net/FindPost6165.aspx</link><description>I have a combobox that I am attempting to load using a business object.  I am getting the error below and cannot figure out how to track it down.  I have done this many times before, and have other comboboxes on other forms that use this same exact population settings.  It appears as though it is erroring out when attempting to find BBS.Biz.Entities.ClientsBO.  I have a reference to this dll in my project.  Any help tracking this problem would be appreciated.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
List Population Settings:&lt;br&gt;
&lt;br&gt;
        ListPopulationSettings6.BusinessObjectType = "BBS.Biz.Entities.ClientsBO"&lt;br&gt;
        ListPopulationSettings6.DisplayFieldNames.AddRange(New String() {"Name", "ClientNo"})&lt;br&gt;
        ListPopulationSettings6.FormatString = "{0} ({1})"&lt;br&gt;
        ListPopulationSettings6.MethodToExecute = "FillAll;"&lt;br&gt;
        ListPopulationSettings6.ValueMember = "ClientKey"&lt;br&gt;
&lt;br&gt;
Error:&lt;br&gt;
&lt;br&gt;
1/24/2007 11:15:46 AM&lt;br&gt;
Source: mscorlib&lt;br&gt;
Message: Value cannot be null.&lt;br&gt;
Parameter name: type&lt;br&gt;
Stack:    at System.Activator.CreateInstance(Type type, Boolean nonPublic)&lt;br&gt;
   at System.Activator.CreateInstance(Type type)&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.ListControl.PopulateComboFromBusinessObject(IListControl lstControl, Object[] Parameters)&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.ListControl.PopulateCombo(Control lstControl, Object[] Parameters)&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.DevEx.ComboBoxEdit.PopulateCombo(Object[] Parameters)&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.DevEx.ComboBoxEdit.Requery()&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.DevEx.ComboBoxEdit.InitializeObject()&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects()&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)&lt;br&gt;
   at System.Windows.Forms.Form.OnCreateControl()&lt;br&gt;
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)&lt;br&gt;
   at System.Windows.Forms.Control.CreateControl()&lt;br&gt;
   at System.Windows.Forms.Control.WmShowWindow(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.ContainerControl.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Form.WmShowWindow(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Form.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</description><pubDate>Thu, 25 Jan 2007 09:04:42 GMT</pubDate><dc:creator>Brad Vick</dc:creator></item><item><title>RE: DevExpress ComboBoxEdit Population Problem</title><link>http://forum.strataframe.net/FindPost6207.aspx</link><description>Yes, .NET uses a lazy loading scheme: DLLs are not loaded until an type that references them is needed.&amp;nbsp; However, it is quite strange that they did not show up in the GetReferencedAssemblies() method call... unless that call only returns the referenced assemblies that are currently loaded into the AppDomain.&lt;/P&gt;&lt;P&gt;If you have this problem again... say with a business object that comes from an assembly where this is the only place you're using it, you can provide the full assembly qualified type name for the type and .NET will resolve it, like this:&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.Data.SqlDataSourceItem, MicroFour StrataFrame Base, Version=1.5.0.0, Culture=neutral, PublicKeyToken=SomeHexValue</description><pubDate>Thu, 25 Jan 2007 09:04:42 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: DevExpress ComboBoxEdit Population Problem</title><link>http://forum.strataframe.net/FindPost6187.aspx</link><description>Yeah, a couple of times actually.&lt;br&gt;
&lt;br&gt;
This is a new form that I just created today.&lt;br&gt;
&lt;br&gt;
I just got it working.  I have a reference to BBS.Biz.Entities in this project.  But I didn't actually have a instance of a ClientsBO (or any other business object in Entities) on any forms in this project.  As soon as I created an isntance of a ClientsBO, it works.  BBS.Biz.Entities was not showing up in the collection loAssembly.GetReferencedAssemblies(), I guess because nothing in this project instanced any object in that namespace.</description><pubDate>Wed, 24 Jan 2007 15:39:53 GMT</pubDate><dc:creator>Brad Vick</dc:creator></item><item><title>RE: DevExpress ComboBoxEdit Population Problem</title><link>http://forum.strataframe.net/FindPost6183.aspx</link><description>Just for grins, have you tried to first reset the PopulationDataSourceSettings property (right-click and reset), saved, and then tried to re-create the PopulationDataSourceSettings?&amp;nbsp; It sounds like something has changed in the FullName of the object from when it was originally defined.</description><pubDate>Wed, 24 Jan 2007 15:24:37 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: DevExpress ComboBoxEdit Population Problem</title><link>http://forum.strataframe.net/FindPost6180.aspx</link><description>No.  That does match.  I used the population settings user interface to set this.</description><pubDate>Wed, 24 Jan 2007 14:16:38 GMT</pubDate><dc:creator>Brad Vick</dc:creator></item><item><title>RE: DevExpress ComboBoxEdit Population Problem</title><link>http://forum.strataframe.net/FindPost6175.aspx</link><description>Was the business object or it's namespace renamed?&amp;nbsp; That string name of the "BBS.Biz.Entities.ClientsBO" must exactly match the name of the type that the framework will try to resolve.</description><pubDate>Wed, 24 Jan 2007 13:52:44 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>