InvalidOperationException in AttachAndExecuteLastState

Jun 14, 2010 at 12:49 PM

hi, when i run MEFedMVVMSample i got the following error:

System.InvalidOperationException wurde nicht behandelt.
  Message=Von Ziel  werden keine VisualStateGroups-Elemente definiert.
  Source=Microsoft.Expression.Interactions
  StackTrace:
       bei Microsoft.Expression.Interactivity.Core.GoToStateAction.OnTargetChanged(FrameworkElement oldTarget, FrameworkElement newTarget)
       bei System.Windows.Interactivity.TargetedTriggerAction`1.OnTargetChangedImpl(DependencyObject oldTarget, DependencyObject newTarget)
       bei System.Windows.Interactivity.TargetedTriggerAction.OnTargetChanged(Object sender, NameResolvedEventArgs e)
       bei System.Windows.Interactivity.NameResolver.OnObjectChanged(DependencyObject oldTarget, DependencyObject newTarget)
       bei System.Windows.Interactivity.NameResolver.UpdateObjectFromName(DependencyObject oldObject)
       bei System.Windows.Interactivity.NameResolver.OnNameScopeReferenceElementChanged(FrameworkElement oldNameScopeReference)
       bei System.Windows.Interactivity.NameResolver.set_NameScopeReferenceElement(FrameworkElement value)
       bei System.Windows.Interactivity.TargetedTriggerAction.OnAttached()
       bei System.Windows.Interactivity.TriggerAction.Attach(DependencyObject dependencyObject)
       bei MEFedMVVM.Services.CommonServices.DefaultVisualStateManagerInvoker.AttachAndExecuteLastState(FrameworkElement root) in C:\Dokumente und Einstellungen\bereuter\Eigene Dateien\Visual Studio 2010\Projects\MEFedMVVMDemo\MEFedMVVM\Services\CommonServices\DefaultVisualStateManagerInvoker.cs:Zeile 76.
       bei MEFedMVVM.Services.CommonServices.DefaultVisualStateManagerInvoker.TryAttach(FrameworkElement root) in C:\Dokumente und Einstellungen\bereuter\Eigene Dateien\Visual Studio 2010\Projects\MEFedMVVMDemo\MEFedMVVM\Services\CommonServices\DefaultVisualStateManagerInvoker.cs:Zeile 67.
       bei MEFedMVVM.Services.CommonServices.DefaultVisualStateManagerInvoker.<>c__DisplayClass3.<InjectContext>b__0(Object sender, RoutedEventArgs e) in C:\Dokumente und Einstellungen\bereuter\Eigene Dateien\Visual Studio 2010\Projects\MEFedMVVMDemo\MEFedMVVM\Services\CommonServices\DefaultVisualStateManagerInvoker.cs:Zeile 46.
       bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       bei System.Windows.RouteItem.InvokeHandler(RoutedEventArgs routedEventArgs)
       bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       bei System.Windows.EventRoute.InvokeHandlers(Object source, RoutedEventArgs args)
       bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       bei System.Windows.FrameworkElement.OnLoaded(RoutedEventArgs args)
       bei MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
       bei System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
       bei System.Windows.BroadcastEventHelper.BroadcastLoadedSynchronously(DependencyObject rootDO, Boolean isLoaded)
       bei System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
       bei MS.Internal.LoadedOrUnloadedOperation.DoWork()
       bei System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
       bei System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       bei System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       bei System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       bei System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
       bei System.Windows.Interop.HwndTarget.OnResize()
       bei System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
       bei System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs)
       bei System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       bei System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
       bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       bei MS.Win32.UnsafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
       bei System.Windows.Window.ShowHelper(Object booleanBox)
       bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs)
       bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
       bei System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       bei System.Threading.ExecutionContext.runTryCode(Object userData)
       bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       bei System.Windows.Threading.DispatcherOperation.Invoke()
       bei System.Windows.Threading.Dispatcher.ProcessQueue()
       bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs)
       bei System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       bei System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
       bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       bei System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(MSG& msg)
       bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       bei System.Windows.Threading.Dispatcher.Run()
       bei System.Windows.Application.RunDispatcher(Object ignore)
       bei System.Windows.Application.RunInternal(Window window)
       bei System.Windows.Application.Run(Window window)
       bei System.Windows.Application.Run()
       bei MEFedMVVMSample.App.Main() in C:\Dokumente und Einstellungen\bereuter\Eigene Dateien\Visual Studio 2010\Projects\MEFedMVVMDemo\Samples\MEFedMVVMSample\MEFedMVVMSample\obj\x86\Debug\App.g.cs:Zeile 0.
       bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       bei System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       bei System.Threading.ThreadHelper.ThreadStart()
  InnerException:

any hints?

thx frank

 

Coordinator
Jun 14, 2010 at 1:23 PM
Do you have Blend 4 RC installed?

Regards
Marlon
WPF Blog - http://marlongrech.wordpress.com/
Microsoft MVP for Client App



On Mon, Jun 14, 2010 at 1:49 PM, blindmeis <notifications@codeplex.com> wrote:

From: blindmeis

hi, when i run MEFedMVVMSample i got the following error:

System.InvalidOperationException wurde nicht behandelt.
  Message=Von Ziel  werden keine VisualStateGroups-Elemente definiert.
  Source=Microsoft.Expression.Interactions
  StackTrace:
       bei Microsoft.Expression.Interactivity.Core.GoToStateAction.OnTargetChanged(FrameworkElement oldTarget, FrameworkElement newTarget)
       bei System.Windows.Interactivity.TargetedTriggerAction`1.OnTargetChangedImpl(DependencyObject oldTarget, DependencyObject newTarget)
       bei System.Windows.Interactivity.TargetedTriggerAction.OnTargetChanged(Object sender, NameResolvedEventArgs e)
       bei System.Windows.Interactivity.NameResolver.OnObjectChanged(DependencyObject oldTarget, DependencyObject newTarget)
       bei System.Windows.Interactivity.NameResolver.UpdateObjectFromName(DependencyObject oldObject)
       bei System.Windows.Interactivity.NameResolver.OnNameScopeReferenceElementChanged(FrameworkElement oldNameScopeReference)
       bei System.Windows.Interactivity.NameResolver.set_NameScopeReferenceElement(FrameworkElement value)
       bei System.Windows.Interactivity.TargetedTriggerAction.OnAttached()
       bei System.Windows.Interactivity.TriggerAction.Attach(DependencyObject dependencyObject)
       bei MEFedMVVM.Services.CommonServices.DefaultVisualStateManagerInvoker.AttachAndExecuteLastState(FrameworkElement root) in C:\Dokumente und Einstellungen\bereuter\Eigene Dateien\Visual Studio 2010\Projects\MEFedMVVMDemo\MEFedMVVM\Services\CommonServices\DefaultVisualStateManagerInvoker.cs:Zeile 76.
       bei MEFedMVVM.Services.CommonServices.DefaultVisualStateManagerInvoker.TryAttach(FrameworkElement root) in C:\Dokumente und Einstellungen\bereuter\Eigene Dateien\Visual Studio 2010\Projects\MEFedMVVMDemo\MEFedMVVM\Services\CommonServices\DefaultVisualStateManagerInvoker.cs:Zeile 67.
       bei MEFedMVVM.Services.CommonServices.DefaultVisualStateManagerInvoker.<>c__DisplayClass3.<InjectContext>b__0(Object sender, RoutedEventArgs e) in C:\Dokumente und Einstellungen\bereuter\Eigene Dateien\Visual Studio 2010\Projects\MEFedMVVMDemo\MEFedMVVM\Services\CommonServices\DefaultVisualStateManagerInvoker.cs:Zeile 46.
       bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       bei System.Windows.RouteItem.InvokeHandler(RoutedEventArgs routedEventArgs)
       bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       bei System.Windows.EventRoute.InvokeHandlers(Object source, RoutedEventArgs args)
       bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       bei System.Windows.FrameworkElement.OnLoaded(RoutedEventArgs args)
       bei MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
       bei System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
       bei System.Windows.BroadcastEventHelper.BroadcastLoadedSynchronously(DependencyObject rootDO, Boolean isLoaded)
       bei System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
       bei MS.Internal.LoadedOrUnloadedOperation.DoWork()
       bei System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
       bei System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       bei System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       bei System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       bei System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
       bei System.Windows.Interop.HwndTarget.OnResize()
       bei System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
       bei System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs)
       bei System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       bei System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
       bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       bei MS.Win32.UnsafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
       bei System.Windows.Window.ShowHelper(Object booleanBox)
       bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs)
       bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
       bei System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       bei System.Threading.ExecutionContext.runTryCode(Object userData)
       bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       bei System.Windows.Threading.DispatcherOperation.Invoke()
       bei System.Windows.Threading.Dispatcher.ProcessQueue()
       bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs)
       bei System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       bei System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
       bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       bei System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(MSG& msg)
       bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       bei System.Windows.Threading.Dispatcher.Run()
       bei System.Windows.Application.RunDispatcher(Object ignore)
       bei System.Windows.Application.RunInternal(Window window)
       bei System.Windows.Application.Run(Window window)
       bei System.Windows.Application.Run()
       bei MEFedMVVMSample.App.Main() in C:\Dokumente und Einstellungen\bereuter\Eigene Dateien\Visual Studio 2010\Projects\MEFedMVVMDemo\Samples\MEFedMVVMSample\MEFedMVVMSample\obj\x86\Debug\App.g.cs:Zeile 0.
       bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       bei System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       bei System.Threading.ThreadHelper.ThreadStart()
  InnerException:

any hints?

thx frank

 

Read the full discussion online.

To add a post to this discussion, reply to this email (MEFedMVVM@discussions.codeplex.com)

To start a new discussion for this project, email MEFedMVVM@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jun 15, 2010 at 5:52 AM

did not know that i need blend rc4, just have blend 3 installed. omw to change this^^

Jun 15, 2010 at 7:21 AM

with blend4 rc all is working as expected :) thx marlon

Coordinator
Jun 16, 2010 at 5:32 PM
no problem

Regards
Marlon
WPF Blog - http://marlongrech.wordpress.com/
Microsoft MVP for Client App



On Tue, Jun 15, 2010 at 8:22 AM, blindmeis <notifications@codeplex.com> wrote:

From: blindmeis

with blend4 rc all is working as expected :) thx marlon

Read the full discussion online.

To add a post to this discussion, reply to this email (MEFedMVVM@discussions.codeplex.com)

To start a new discussion for this project, email MEFedMVVM@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Nov 4, 2010 at 5:40 PM

Hi Marlon,

I am also receiving the above mentioned error. I tried to find Blend4 RC to install, but all the MS links for it seem to be broken. I have MS Expression 4 installed (and therefore Blend 4), but it still won't work. Any advice?

Thanks,
Genaro 

Coordinator
Nov 5, 2010 at 9:23 AM

that exception will the thrown if the Visual state is not found ... where is your VisualState? is it in the control that is invoking the ViewModelLocation.ViewModel attached property?