.NET

.NET

Reply
Valued Contributor
HEnnulat
Posts: 51
Registered: ‎10-05-2009
Message 1 of 24 (1,729 Views)

"System.Windows.Data Error: ## : BindingExpression path error...".?

1729 Views, 23 Replies
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:smileytongue:ath=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:smileytongue:ath=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:smileytongue:ath=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:smileytongue:ath=BackgroundEndColor; DataItem=null; target element is 'GradientStop' (HashCode=35008393); target property is 'Color' (type 'Color')
*Tony Tanzillo
Message 2 of 24 (1,729 Views)

Re: "System.Windows.Data Error: ## : BindingExpression path error...".?

10-09-2009 08:22 AM in reply to: HEnnulat
Attach a zipped project that has the error, and perhaps someone can tell you
what's wrong.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6268704@discussion.autodesk.com...
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:smileytongue:ath=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:smileytongue:ath=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:smileytongue:ath=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:smileytongue:ath=BackgroundEndColor; DataItem=null; target element is
'GradientStop' (HashCode=35008393); target property is 'Color' (type
'Color')
Valued Contributor
HEnnulat
Posts: 51
Registered: ‎10-05-2009
Message 3 of 24 (1,730 Views)

Re: "System.Windows.Data Error: ## : BindingExpression path error...".?

10-12-2009 09:50 AM in reply to: HEnnulat
Attached is a zip file of my project. It is my version of Lab3 from the Autodesk "autocad_2010_dotnet_training.zip" training package.
Valued Contributor
HEnnulat
Posts: 51
Registered: ‎10-05-2009
Message 4 of 24 (1,730 Views)

Re: "System.Windows.Data Error: ## : BindingExpression path error...".?

10-19-2009 10:11 AM in reply to: HEnnulat
I haven't got any response, so am replying to this post to refresh it in the discussion list.

I have been running now for a week and have learned to ignore these "binding" errors.

Stephen Preston from autodesk advised me to just treat these messages as warnings stating that " If your only remaining problem is that you see those messages in the output window when you launch AutoCAD from your debugger, then you don’t have a problem."
I'm still curious, Do these messages always appear and they are just hidden from us in the demo videos? Or is there a way to get rid of these messages.

All users. Please send a quick reply advising if these messages are normal. I'd especially like to hear if anyone does not get these messages. If nothing else we'll all know now and later for reference in this thread.
*Tony Tanzillo
Message 5 of 24 (1,730 Views)

Re: "System.Windows.Data Error: ## : BindingExpression path error...".?

10-19-2009 10:58 AM in reply to: HEnnulat
Do you have "Just My Code" enabled in Debug options?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6273903@discussion.autodesk.com...
I haven't got any response, so am replying to this post to refresh it in the
discussion list. I have been running now for a week and have learned to
ignore these "binding" errors. Stephen Preston from autodesk advised me to
just treat these messages as warnings stating that " If your only remaining
problem is that you see those messages in the output window when you launch
AutoCAD from your debugger, then you don't have a problem." I'm still
curious, Do these messages always appear and they are just hidden from us in
the demo videos? Or is there a way to get rid of these messages. All users.
Please send a quick reply advising if these messages are normal. I'd
especially like to hear if anyone does not get these messages. If nothing
else we'll all know now and later for reference in this thread.
*Tony Tanzillo
Message 6 of 24 (1,730 Views)

Re: "System.Windows.Data Error: ## : BindingExpression path error...".?

10-19-2009 12:03 PM in reply to: HEnnulat
I know I suggested posting a project demonstrating the problem, but I've
been pretty busy the past few weeks and just overlooked your reply.

I downloaded your project, compiled it, and ran it in the debugger, and I do
not see any errors. I did it with and without 'Just My Code' enabled, and
still did not see those errors (plain vanilla AutoCAD 2010).

What AutoCAD product are you using?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6273903@discussion.autodesk.com...
I haven't got any response, so am replying to this post to refresh it in the
discussion list. I have been running now for a week and have learned to
ignore these "binding" errors. Stephen Preston from autodesk advised me to
just treat these messages as warnings stating that " If your only remaining
problem is that you see those messages in the output window when you launch
AutoCAD from your debugger, then you don't have a problem." I'm still
curious, Do these messages always appear and they are just hidden from us in
the demo videos? Or is there a way to get rid of these messages. All users.
Please send a quick reply advising if these messages are normal. I'd
especially like to hear if anyone does not get these messages. If nothing
else we'll all know now and later for reference in this thread.
Valued Contributor
HEnnulat
Posts: 51
Registered: ‎10-05-2009
Message 7 of 24 (1,730 Views)

Re: "System.Windows.Data Error: ## : BindingExpression path error...".?

10-19-2009 03:12 PM in reply to: HEnnulat
That is interesting! I'm surprised you don't get these errors. Why would the version of AutoCAD matter to VS2008 VB.Net?

I'm running "Version: D.215.0.0, AutoCAD Electrical 2010 Version 2" using a permanent network license according to the Help About screen.

Most of the binding errors appear before AutoCAD is loaded.
*Tony Tanzillo
Message 8 of 24 (1,730 Views)

Re: "System.Windows.Data Error: ## : BindingExpression path error...".?

10-19-2009 03:17 PM in reply to: HEnnulat
Each vertical has its own managed components that may or may not be present
in other verticals or vanilla AutoCAD, so that could have something to do
with it.

But you didn't answer the main question, which is (again) do you have 'Just
My Code' enabled in your debug options?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6274140@discussion.autodesk.com...
That is interesting! I'm surprised you don't get these errors. Why would
the version of AutoCAD matter to VS2008 VB.Net?

I'm running "Version: D.215.0.0, AutoCAD Electrical 2010 Version 2" using a
permanent network license according to the Help About screen.

Most of the binding errors appear before AutoCAD is loaded.
Valued Contributor
HEnnulat
Posts: 51
Registered: ‎10-05-2009
Message 9 of 24 (1,730 Views)

Re: "System.Windows.Data Error: ## : BindingExpression path error...".?

10-20-2009 02:00 PM in reply to: HEnnulat
I thought I replyed to this yesterday, but I'm not seeing it, so replying again....

Attached is an image of my Option "Just My Code" selections under Options... I did not know about this till you mentioned it. (Not sure why I missed the post requesting this the first time)...

Just My Code is enabled.

I'm using the dll files in the OjecteARX 2010 SDK and not the dll files in the ACAD root directory.

Good thoughts about the dll files being different for the different versions of AutoCAD. I'll certainly try using just the acMgd annd acDbMgd files in the AutoCAD root to see if that helps.
*Tony Tanzillo
Message 10 of 24 (1,730 Views)

Re: "System.Windows.Data Error: ## : BindingExpression path error...".?

10-20-2009 04:56 PM in reply to: HEnnulat
If you're using the .dlls from the SDK, do you have CopyLocal
set to true on those references? The problem could be a result
of AutoCAD trying to load the AcMdg & AcDbMgd dlls from the
SDK, which will not work because they are specially-modified to
avoid any dependence on native dlls.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:6274826@discussion.autodesk.com...
I thought I replyed to this yesterday, but I'm not seeing it, so replying
again....

Attached is an image of my Option "Just My Code" selections under Options...
I did not know about this till you mentioned it. (Not sure why I missed the
post requesting this the first time)...

Just My Code is enabled.

I'm using the dll files in the OjecteARX 2010 SDK and not the dll files in
the ACAD root directory.

Good thoughts about the dll files being different for the different versions
of AutoCAD. I'll certainly try using just the acMgd annd acDbMgd files in
the AutoCAD root to see if that helps.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.