"System.Windows.Data Error: ## : BindingExpression path error...".?
Not applicable
ā10-08-2009
03:37 PM
How does one get rid of the "System.Windows.Data Error: 39 : BindingExpression path error: ......" type messages?
There are so many in my immediate window in Visual Studio 2008 using the AutoCAD plug-in template and doing the lab projects from Autodesk, that I would miss ligitimate errors.
Programs actually do run but these errors are annoying none the less.
There must be a way to get rid of these messages if they are actually handled by AutoCAD. (See the post titled "Cann't Get VB.Net to Work with AutoCAD 2010" for background info).
Attached is the entire list of BindingExpression errors I get.
A few representative ones are shown here:
System.Windows.Data Error: 39 : BindingExpression path error: 'QuickAccessToolBar' property not found on 'object' ''ComponentSettings' (HashCode=9521066)'. BindingExpression:Path=QuickAccessToolBar.Theme.CurrentBrush; DataItem='ComponentSettings' (HashCode=9521066); target element is 'Border' (Name='mQuickAccessToolBar'); target property is 'Background' (type 'Brush')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonItemControl', AncestorLevel='1''. BindingExpression:Path=Size; DataItem=null; target element is 'TextBlockWithToolTip' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Remove'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='55411339'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='System.Windows.Controls.Primitives.ToggleButton Content: IsChecked:False'; TargetElement.HashCode='28940004'; TargetElement.Type='System.Windows.Controls.Primitives.ToggleButton'
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='NaN' BindingExpression:Path=Source.MinimumWidth; DataItem='ToolBarControl' (Name=''); target element is 'ToolBarControl' (Name=''); target property is 'MinWidth' (type 'Double')
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=BackgroundEndColor; DataItem=null; target element is 'GradientStop' (HashCode=35008393); target property is 'Color' (type 'Color')
There are so many in my immediate window in Visual Studio 2008 using the AutoCAD plug-in template and doing the lab projects from Autodesk, that I would miss ligitimate errors.
Programs actually do run but these errors are annoying none the less.
There must be a way to get rid of these messages if they are actually handled by AutoCAD. (See the post titled "Cann't Get VB.Net to Work with AutoCAD 2010" for background info).
Attached is the entire list of BindingExpression errors I get.
A few representative ones are shown here:
System.Windows.Data Error: 39 : BindingExpression path error: 'QuickAccessToolBar' property not found on 'object' ''ComponentSettings' (HashCode=9521066)'. BindingExpression:Path=QuickAccessToolBar.Theme.CurrentBrush; DataItem='ComponentSettings' (HashCode=9521066); target element is 'Border' (Name='mQuickAccessToolBar'); target property is 'Background' (type 'Brush')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Autodesk.Windows.RibbonItemControl', AncestorLevel='1''. BindingExpression:Path=Size; DataItem=null; target element is 'TextBlockWithToolTip' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Remove'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='55411339'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='System.Windows.Controls.Primitives.ToggleButton Content: IsChecked:False'; TargetElement.HashCode='28940004'; TargetElement.Type='System.Windows.Controls.Primitives.ToggleButton'
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='NaN' BindingExpression:Path=Source.MinimumWidth; DataItem='ToolBarControl' (Name=''); target element is 'ToolBarControl' (Name=''); target property is 'MinWidth' (type 'Double')
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=BackgroundEndColor; DataItem=null; target element is 'GradientStop' (HashCode=35008393); target property is 'Color' (type 'Color')
Link copied