When I try to navigate to my sync window by clicking the cloud icon I'm getting the following error message

01/03/2019 05:04:00.646 PM

System.Exception: Error during navigation ---> System.Exception: Error during navigation ---> System.InvalidOperationException: Cannot create navigation target 'SynchronizationViewModel'. ---> Microsoft.Practices.ServiceLocation.ActivationException: Activation error occured while trying to get instance of type Object, key "SynchronizationViewModel" ---> Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "System.Object", name = "SynchronizationViewModel".

Exception occurred while: Calling constructor Graphite.UI.View.Synchronization.SynchronizationViewModel(Graphite.UI.View.Synchronization.ISynchronizationView view, Graphite.Model.Project.IProjectDefinitionService projectDefinitionService).

Exception is: InvalidOperationException - Sequence contains no matching element


At the time of the exception, the container was:

Resolving Graphite.UI.View.Synchronization.SynchronizationViewModel,SynchronizationViewModel (mapped from System.Object, SynchronizationViewModel)

Calling constructor Graphite.UI.View.Synchronization.SynchronizationViewModel(Graphite.UI.View.Synchronization.ISynchronizationView view, Graphite.Model.Project.IProjectDefinitionService projectDefinitionService)

---> System.InvalidOperationException: Sequence contains no matching element

at System.Linq.Enumerable.FirstTSource

at Graphite.UI.View.Synchronization.SynchronizationViewModel.aUC5e9QeyGh()

at Graphite.UI.View.Synchronization.SynchronizationViewModel..ctor(ISynchronizationView view, IProjectDefinitionService projectDefinitionService)

at BuildUp_Graphite.UI.View.Synchronization.SynchronizationViewModel(IBuilderContext )

at Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context)

at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)

at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)

at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)

--- End of inner exception stack trace ---

at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)

at Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides)

at Microsoft.Practices.Prism.UnityExtensions.UnityServiceLocatorAdapter.DoGetInstance(Type serviceType, String key)

at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)

--- End of inner exception stack trace ---

at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)

at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstanceTService

at Microsoft.Practices.Prism.Regions.RegionNavigationContentLoader.CreateNewRegionItem(String candidateTargetContract)

--- End of inner exception stack trace ---

at Microsoft.Practices.Prism.Regions.RegionNavigationContentLoader.CreateNewRegionItem(String candidateTargetContract)

at Graphite.Infrastructure.Navigation.RegionNavigationContentLoader.Qbp9dH9YZ9(IRegion , NavigationContext , Boolean& )

at Graphite.Infrastructure.Navigation.RegionNavigationContentLoader.Microsoft.Practices.Prism.Regions.IRegionNavigationContentLoader.LoadContent(IRegion region, NavigationContext navigationContext) at Microsoft.Practices.Prism.Regions.RegionNavigationContentLoader.CreateNewRegionItem(String candidateTargetContract)

at Graphite.Infrastructure.Navigation.RegionNavigationContentLoader.Qbp9dH9YZ9(IRegion , NavigationContext , Boolean& )

at Graphite.Infrastructure.Navigation.RegionNavigationContentLoader.Microsoft.Practices.Prism.Regions.IRegionNavigationContentLoader.LoadContent(IRegion region, NavigationContext navigationContext)

at Microsoft.Practices.Prism.Regions.RegionNavigationService.ExecuteNavigation(NavigationContext navigationContext, Object[] activeViews, Action`1 navigationCallback)

--- End of inner exception stack trace ---

at Graphite.Infrastructure.Navigation.NavigationService.HLR9XS7OdM(NavigationResult , IRegionManager )

at Graphite.Infrastructure.Navigation.NavigationService.<>cDisplayClass13`1.<navigateto>bf(NavigationResult result)

at Microsoft.Practices.Prism.Regions.RegionNavigationService.NotifyNavigationFailed(NavigationContext navigationContext, Action`1 navigationCallback, Exception e)

at Microsoft.Practices.Prism.Regions.RegionNavigationService.ExecuteNavigation(NavigationContext navigationContext, Object[] activeViews, Action`1 navigationCallback)

at Microsoft.Practices.Prism.Regions.RegionNavigationService.RequestCanNavigateFromOnCurrentlyActiveView(NavigationContext navigationContext, Action`1 navigationCallback, Object[] activeViews, Int32 currentViewIndex)

at Microsoft.Practices.Prism.Regions.RegionNavigationService.DoNavigate(Uri source, Action`1 navigationCallback)

at Microsoft.Practices.Prism.Regions.RegionNavigationService.RequestNavigate(Uri target, Action`1 navigationCallback)

--- End of inner exception stack trace ---

at Graphite.Infrastructure.Navigation.NavigationService.HLR9XS7OdM(NavigationResult , IRegionManager )

at Graphite.Infrastructure.Navigation.NavigationService.<>cDisplayClass13`1.<navigateto>bf(NavigationResult result)

at Microsoft.Practices.Prism.Regions.RegionNavigationService.NotifyNavigationFailed(NavigationContext navigationContext, Action`1 navigationCallback, Exception e)

at Microsoft.Practices.Prism.Regions.RegionNavigationService.RequestNavigate(Uri target, Action`1 navigationCallback)

at Microsoft.Practices.Prism.Regions.Region.RequestNavigate(Uri target, Action`1 navigationCallback)

at Graphite.Infrastructure.Navigation.NavigationService.RQk9QQAumGeHItZ2JTyGvmPwD8IU

at Graphite.Infrastructure.Navigation.NavigationService.NavigateToTViewModel at Graphite.Infrastructure.Navigation.NavigationService.HLR9XS7OdM(NavigationResult , IRegionManager )

at Graphite.Infrastructure.Navigation.NavigationService.<>cDisplayClass13`1.<navigateto>bf(NavigationResult result)

at Microsoft.Practices.Prism.Regions.RegionNavigationService.NotifyNavigationFailed(NavigationContext navigationContext, Action`1 navigationCallback, Exception e)

at Microsoft.Practices.Prism.Regions.RegionNavigationService.RequestNavigate(Uri target, Action`1 navigationCallback)

at Microsoft.Practices.Prism.Regions.Region.RequestNavigate(Uri target, Action`1 navigationCallback)

at Graphite.Infrastructure.Navigation.NavigationService.RQk9QQAumGeHItZ2JTyGvmPwD8IU

at Graphite.Infrastructure.Navigation.NavigationService.NavigateToTViewModel

at Graphite.Infrastructure.Navigation.NavigationService.NavigateToTViewModel

at Graphite.UI.View.Shell.ShellViewModel.Txk5EDaqnOS()

at Graphite.UI.View.SaveModelPromptHelper.V6RK78KzedncJfu3abJ(Object )

at Graphite.UI.View.SaveModelPromptHelper.TryPerformAction(String warningMessage, Action action)

at Graphite.UI.View.Shell.ShellViewModel.qcX5EYEh8vU()

at Graphite.UI.View.Shell.ShellViewModel.ExecuteNavigateToSyncScreenCommand()

at Microsoft.Practices.Prism.Commands.DelegateCommand.<>cDisplayClass6.<.ctor>b2(Object o)

at Microsoft.Practices.Prism.Commands.DelegateCommandBase.Execute(Object parameter)

at Microsoft.Practices.Prism.Commands.DelegateCommandBase.System.Windows.Input.ICommand.Execute(Object parameter)

at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)

at System.Windows.Controls.Primitives.ButtonBase.OnClick()

at System.Windows.Controls.Button.OnClick()

at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)

at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)

at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)

at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)

at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

at System.Windows.Input.InputManager.ProcessStagingArea()

at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object

asked 03 Jan, 09:14

SarathS's gravatar image

SarathS
311410
accept rate: 0%


This would happen is some files are manually checked-out via TFS.

link

answered 07 Jan, 12:11

ChrisG's gravatar image

ChrisG
1001k314366
accept rate: 57%

1

Yes, this seems to be the issue. It started working when I did an "Undo" from visual studio. Will make sure that only graphite studio is used to check-out code.Thanks

(15 Jan, 12:40) SarathS

There is a work around for this issue.

THIS IS FOR CASES WHEN NO MANUAL OPERATION(UNDO/CHECKIN) HAS BEEN DONE DIRECTLY IN TFS.

  1. Make sure Project builds successfully

  2. Exit Graphite Studio

  3. Remove BatchChange.config (same folder as Project.config) of the Project

  4. Open Project using Graphite Studio

  5. Navigate to Sync dialog

  6. Select All

  7. Synchronize

link

answered 01 Mar, 16:01

Nitin%20Chhabra's gravatar image

Nitin Chhabra
564516
accept rate: 33%

edited 01 Mar, 16:05

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4
×4

Asked: 03 Jan, 09:14

Seen: 247 times

Last updated: 01 Mar, 16:05

Powered By:   Graphite