Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

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

Anonymous

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

Anonymous
Not applicable
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')
0 Likes
Reply
5,547 Views
24 Replies
Replies (24)

Anonymous
Not applicable
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: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')
0 Likes

Anonymous
Not applicable
Attached is a zip file of my project. It is my version of Lab3 from the Autodesk "autocad_2010_dotnet_training.zip" training package.
0 Likes

Anonymous
Not applicable
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.
0 Likes

Anonymous
Not applicable
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.
0 Likes

Anonymous
Not applicable
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.
0 Likes

Anonymous
Not applicable
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.
0 Likes

Anonymous
Not applicable
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.
0 Likes

Anonymous
Not applicable
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.
0 Likes

Anonymous
Not applicable
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.
0 Likes

Anonymous
Not applicable
Autodesk seemed to make a big deal about "copy local" always needing to be false. But this is something I could try.. Will advise...

The reason I am using the dlls in the SDK is because this was the recommendation I read in some Autodesk reference. I believe it was in the developers guide.

Are you aware of different version of the acDBmgd and acmgd.dll files for the different versions of AutoCAD 2010 (plain, electrical, civil, etc)? Or was this just a speculation to help figure out what might be different between our systems?

A co-worker reported to me this morning that he gets these binding errors also using AutoCAD 2010 the plain version. He is using VB.Net 2005 however.
0 Likes

Anonymous
Not applicable
You should always have CopyLocal set to false for those
two assemblies.

AFAIK, all AutoCAD based products use the same version
of the Ac*Mgd.dll assemblies.

--
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:6275245@discussion.autodesk.com...
Autodesk seemed to make a big deal about "copy local" always needing to be
false. But this is something I could try.. Will advise...

The reason I am using the dlls in the SDK is because this was the
recommendation I read in some Autodesk reference. I believe it was in the
developers guide.

Are you aware of different version of the acDBmgd and acmgd.dll files for
the different versions of AutoCAD 2010 (plain, electrical, civil, etc)? Or
was this just a speculation to help figure out what might be different
between our systems?

A co-worker reported to me this morning that he gets these binding errors
also using AutoCAD 2010 the plain version. He is using VB.Net 2005 however.
0 Likes

Anonymous
Not applicable
Here is an update on my binding erros when I run the code in debug mode. (see attached).
They are significant fewer! Only about 12 messages. Not sure why? I'm not aware that I did anything differently from when I last reported on getting my Visual Studio 2008 set up to run with AutoCAD extensions.
(See the post titled "Cann't Get VB.Net to Work with AutoCAD 2010" for background info).
0 Likes

Anonymous
Not applicable
Hi HEnnulat,

I develop .NET with Revit Structure 2010 and have same problem with you. Have you solve that problem? I have spend 3 days but still stuck.
First i installed VS Express 2010, it can not run. Later i try with VS 2008 profession but still the same event with "Hello World" sample.

Very appreciate if anyone can help.
0 Likes

Anonymous
Not applicable
No Nothing New. I just learned to live with the remaining errors which while decreased still remained as already discussed in this thread.
I never got any additional help on this. The best info suggests that this is fairly "normal", yet some have indicated they do not get tese "binding errors". Edited by: HEnnulat on Dec 29, 2009 12:13 PM
0 Likes

Anonymous
Not applicable
Hi,
A have the same problem with Acad Civil 3D and a lot of other errors (zie attachments). And in my Case the code works with the (annoying) errors.
0 Likes

Anonymous
Not applicable
Hi HEnnulat,
I want to ask you something. When you start up Autocad, a popup-window gives you the opportunity to view some tutorials. There is a checkbox "don't show this anymore". I have done this and a lot of errors disapaered. Is this a solution for you ?
0 Likes

Anonymous
Not applicable
I only see these errors when the CopyLocal property for any referenced assembly
that exists in the AutoCAD folder is set to true.

The error occurs because the resource satellite assembly for the current culture
is not being found in the folder where the assembly that uses it is located, as
would be the case for any referenced AutoCAD assembly whose CopyLocal property
is true, *and* the assembly has not already been loaded into AutoCAD before your
code tries to use it.

--
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:6315576@discussion.autodesk.com...
Hi,
A have the same problem with Acad Civil 3D and a lot of other errors (zie
attachments). And in my Case the code works with the (annoying) errors.
0 Likes

hperison
Contributor
Contributor
Hennulat, This is to simply inform you that you are not alone in this matter as I too have been attempting to resolve this issue.
These messages are displayed within my Visual Basic 2008 Immediate Window during project execution in Debug mode when Autocad is first launched. These appear to have no effect on the project functionality, however I do agree that it is rather disconcerting to see them.
0 Likes

Anonymous
Not applicable
No, not that I know of. I have since moved on to other things, so I'm going by memory a bit, but I'm pretty sure I don't get anything about tutorials... must have turned these off almost right away. Thanks for the thought.
0 Likes