2013-02-13 1 views
0

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

그리고 코드는 ..? –

+2

더 많은 정보를 추가하고 게시물의 형식을 정할 수 있습니까? 현재 문제는 단지 오류 추적 일 뿐이므로 의미가 없습니다. – ChrisF

+0

Visual Studio 인스턴스를 디버깅하는 것처럼 들립니다. VS 확장 프로그램을 개발 중입니까? 'sql-server-2008'은 어떻게 이것에 들어 맞습니까? 내 게시물에 – leppie

답변

0

올바른 데이터베이스에 app.config 파일 문자열 연결을 설정해야하므로 답변을 찾을 수 있었지만 항상 경로를 찾을 수 없어 app.config의 디렉토리 경로를 얻었습니다. 그것을 내 코드로 하드 ​​코드했다.

+0

문법 변경 –

관련 문제