我把一个调试程序附加到我现有的Windows应用程序,我对输出感到困惑

问题描述:

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Microsoft.VisualStudio.PlatformUI.VsToolBar', AncestorLevel='1''. BindingExpression:Path=Orientation; DataItem=null; target element is 'VsMenuItem' (Name=''); target property is 'NoTarget' (type 'Object') System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Microsoft.VisualStudio.PlatformUI.VsToolBar', AncestorLevel='1''. BindingExpression:Path=DataContext.DockLocation; DataItem=null; target element is 'VsMenuItem' (Name=''); target property is 'NoTarget' (type 'Object') System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Microsoft.VisualStudio.PlatformUI.VsToolBar', AncestorLevel='1''. BindingExpression:Path=DataContext.DockLocation; DataItem=null; target element is 'VsMenuItem' (Name=''); target property is 'NoTarget' (type 'Object')我把一个调试程序附加到我现有的Windows应用程序,我对输出感到困惑

如何解决这个问题?

+0

而你的代码是..? – 2013-02-13 09:07:44

+2

您可以添加更多信息并设置您的文章的格式。目前,这个问题只是一个错误痕迹,因此毫无意义。 – ChrisF 2013-02-13 09:07:53

+0

听起来像你在调试Visual Studio实例。你正在开发一个VS扩展? 'sql-server-2008'如何适应这个? – leppie 2013-02-13 09:12:41

我设法找到答案,因为我必须将app.config文件字符串连接设置为正确的数据库,但它始终找不到路径,所以我得到了app.config的目录路径,在我的代码中对其进行硬编码。

+0

我的文章发生语法变化 – 2013-03-15 18:25:40