﻿<?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 » Business Objects and Data Access (How do I?)  » Control not binding to a custom property</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 05 May 2026 11:08:21 GMT</lastBuildDate><ttl>20</ttl><item><title>Control not binding to a custom property</title><link>http://forum.strataframe.net/FindPost10654.aspx</link><description>I have a control that implements IBusinessBinding (a wrapper around TxTextControl).  All works well until I obfuscate the dlls. Then I get an error that the control can't be bound and it asks if there is a field descriptor for the custom property.  Well, there is and it isn't obfuscated, nothing in the BO is obfuscated (I'm not obfuscating my BOs at all). The control is obfuscated though.&lt;br&gt;
&lt;br&gt;
I don't know enough about how all this binding stuff works to know what to look for (other than the field descriptor....which isn't obfuscated).  What might be going wrong?  &lt;br&gt;
&lt;br&gt;
Thanks!   &lt;br&gt;
&lt;br&gt;</description><pubDate>Thu, 02 Aug 2007 09:10:48 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Control not binding to a custom property</title><link>http://forum.strataframe.net/FindPost10672.aspx</link><description>Yeah, obfuscation is a great tool...but sometimes = problems to work through :D</description><pubDate>Thu, 02 Aug 2007 09:10:48 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Control not binding to a custom property</title><link>http://forum.strataframe.net/FindPost10665.aspx</link><description>Well, your sneaky plan worked (the one were you put off replying to the post, cause you figure I'll find an answer in the mean time)  ;)&lt;br&gt;
&lt;br&gt;
I was obfuscating the properties on the control that I was binding to. The property that is bound is stored as text, so after obfuscation, the property name changed and boom.  I marked those properties that might be used for binding to not be obfuscated and it works :D</description><pubDate>Wed, 01 Aug 2007 20:09:58 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Control not binding to a custom property</title><link>http://forum.strataframe.net/FindPost10663.aspx</link><description>Here is the stack trace I'm getting:&lt;br&gt;
&lt;br&gt;
[codesnippet]BusinessLayerException&lt;br&gt;
  An error occurred while refreshing the data from field 'ProjectProcessBO.ProcessDescription' to property 'InnerHTML' on control 'tcMain.'  Are you missing FieldPropertyDescriptor for a custom property?&lt;br&gt;
ArgumentException&lt;br&gt;
  Cannot bind to the property 'InnerHTML' on the target control.&lt;br&gt;
Parameter name: PropertyName&lt;br&gt;
&lt;br&gt;
Source     : MicroFour StrataFrame Business&lt;br&gt;
&lt;br&gt;
Stack Trace:&lt;br&gt;
   at System.Windows.Forms.Binding.CheckBinding()&lt;br&gt;
   at System.Windows.Forms.Binding.SetBindableComponent(IBindableComponent value)&lt;br&gt;
   at System.Windows.Forms.ControlBindingsCollection.AddCore(Binding dataBinding)&lt;br&gt;
   at System.Windows.Forms.ControlBindingsCollection.Add(Binding binding)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.AddBinding(Control ControlToRefresh, String PropertyName, String FieldName)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.RefreshControl(IBusinessBindable ControlToRefresh, Boolean DataPresent)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.RefreshBoundControls()&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.raise_CurrentDataTableRefilled()&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.OnCurrentDataTableRefilled()&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.ChangeCurrentDataTable(DataTable NewTable, Boolean AcceptChanges, Boolean IsSharedTable)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.FillDataTable(DbCommand CommandToExecute)&lt;br&gt;
   at FOXSystems.RAMS.BusinessObjects.Project.ProjectProcessBO.FillByProject(Int32 projectID)&lt;br&gt;
   at FOXSystems.RAMS.MitaAnalysis.x54a16ae912917adb.x404c743874643dfe(Object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)&lt;br&gt;
   at System.EventHandler.Invoke(Object sender, EventArgs e)&lt;br&gt;
   at System.Windows.Forms.Form.OnLoad(EventArgs e)&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.ControlNative&amp;#119;indow.OnMessage(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;br&gt;
[/codesnippet]&lt;br&gt;
&lt;br&gt;
The one obfuscated method is the form load method of the form being loaded with data.</description><pubDate>Wed, 01 Aug 2007 15:26:14 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>