locked
Blend: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) in generic.xaml

    Question

  • When ever i try to load a my customcontrol resource dictionary i get.

    Exception: There was an error building the project. Please rebuild the project.

    StackTrace: Empty

    Exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

    at Windows.UI.Xaml.Automation.AutomationProperties.GetName(DependencyObject element)

    And sometimes all documents just show this exception:

    System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Expression.DesignSurface.ViewModel.NodeViewPair.get_NodePath()
       at Microsoft.Expression.DesignSurface.ViewModel.EditContextManager.EditContextHistory.DrillInPathIsValid(DocumentNodePath selectedElementPath, NodeViewPair drillInContainer)
       at Microsoft.Expression.DesignSurface.ViewModel.EditContextManager.EditContextHistory.GetDrillInEntry(DocumentNodePath selectedElementPath)
       at Microsoft.Expression.DesignSurface.ViewModel.EditContextManager.EditContextHistory.GetChildNodeViewPair(EditContext editContext)
       at Microsoft.Expression.DesignSurface.ViewModel.EditContextManager.MultiHistoryWalker.<>c__DisplayClass22.<WalkContextsBelowActive>b__1f(EditContext context, Boolean isGhosted)
       at Microsoft.Expression.DesignSurface.ViewModel.EditContextManager.EditContextHistory.Walk(EditContext startAtContext, EditContext stopAtContext, Boolean reverseWalk, SingleHistoryCallback callback)
       at Microsoft.Expression.DesignSurface.ViewModel.EditContextManager.EditContextHistory.Walk(EditContext startAtContext, Boolean reverseWalk, SingleHistoryCallback callback)
       at Microsoft.Expression.DesignSurface.ViewModel.EditContextManager.MultiHistoryWalker.WalkContextsBelowActive(MultiHistoryCallback callback)
       at Microsoft.Expression.DesignSurface.ViewModel.EditContextManager.MultiHistoryWalker.Walk(Boolean reverseWalk, MultiHistoryCallback callback)
       at Microsoft.Expression.DesignSurface.UserInterface.DataPane.DataContextAncestorWalker.GetEditContextChain(SceneViewModel viewModel)
       at Microsoft.Expression.DesignSurface.UserInterface.DataPane.DataContextAncestorWalker.InitializePath(SceneNode targetNode, IProperty targetProperty)
       at Microsoft.Expression.DesignSurface.UserInterface.DataPane.DataContextEvaluator.Evaluate(SceneNode target, IPropertyId targetProperty, Boolean isForSettingValue)
       at Microsoft.Expression.DesignSurface.UserInterface.DataPane.DataPanelModel.UpdateActiveDataContext()
       at Microsoft.Expression.DesignSurface.UserInterface.DataPane.DataPanelModel.ViewModel_LateSceneUpdatePhase(Object sender, SceneUpdatePhaseEventArgs args)
       at Microsoft.Expression.DesignSurface.ViewModel.SceneUpdatePhaseEventHandler.Invoke(Object sender, SceneUpdatePhaseEventArgs args)
       at Microsoft.Expression.DesignSurface.ViewModel.SceneViewModel.FireLateSceneUpdatePhase(SceneUpdatePhaseEventArgs args)
       at Microsoft.Expression.DesignSurface.Pipeline.SceneViewUpdateScheduleTask.UpdateLate()
       at Microsoft.Expression.Utility.Scheduler.ScheduleTask.Update()
       at Microsoft.Expression.Utility.Scheduler.SchedulingService.DispatchTasksAtPriority(DispatcherPriority priority)
       at Microsoft.Expression.Utility.Scheduler.SchedulingService.DispatcherToken.Dispatch(Object arg)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at Microsoft.Expression.DesignHost.Isolation.IsolationProcess.RunApplication()
       at Microsoft.Expression.DesignHost.Isolation.IsolationProcess.DesignProcessViewProvider.<>c__DisplayClass7.<applicationView_Activated>b__6()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

    Is editing of generic.xaml suppose to work?


    lh

    Saturday, June 2, 2012 7:10 PM

All replies

  • Hi Lars,

    Editing of Generic.xaml should work in Blend, I do have few questions:

    1. Which build of Windows8 and Visual Studio are you using? I would recommend trying the scenario on latest Windows8 Release Preview and Visual Studio 2012 RC bits.

    2. Will it be possible for you to share a small repro project with us?

    You can send me details at navits at Microsoft dot com and I can take a look at this issue on priority.

    -Navit Saxena

    Saturday, June 2, 2012 7:17 PM
  • Hi Navit

    1. I´m on the RP Version

    2. Sure I can share. ;-) What´s your mail?


    lh


    Saturday, June 2, 2012 7:44 PM
  • Send me at:

    navits at microsoft dot com and I can take a look at this. May sure you send me set of repro steps as well :).

    Thanks for your help !!!

    -Navit Saxena

    Saturday, June 2, 2012 8:12 PM
  • Struggling with the same error here. However I did discover a workaround, running Blend  under a local user account (do not log on with LiveID) works.

    Edit: This workaround seems to be unreliable as today it has started to throw exactly the same error, running under the local account


    Richard McIntyre


    • Edited by Richard_McIntyre Friday, June 15, 2012 6:54 AM More Information\correction
    Thursday, June 14, 2012 3:15 PM
  • The below issue has been fixed in our latest bits. This should be available in the next public release of Visual Studio 2012

    System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Expression.DesignSurface.ViewModel.NodeViewPair.get_NodePath()
       at Microsoft.Expression.DesignSurface.ViewModel.EditContextManager.EditContextHistory.DrillInPathIsValid(DocumentNodePath selectedElementPath, NodeViewPair drillInContainer)
       at Microsoft.Expression.DesignSurface.ViewModel.EditContextManager.EditContextHistory.GetDrillInEntry(DocumentNodePath selectedElementPath)
       at Microsoft.Expression.DesignSurface.ViewModel.EditContextManager.EditContextHistory.GetChildNodeViewPair(EditContext editContext)
       at Microsoft.Expression.DesignSurface.ViewModel.EditContextManager.MultiHistoryWalker.<>c__DisplayClass22.<WalkContextsBelowActive>b__1f(EditContext context, Boolean


    Dev@Mic

    Monday, June 18, 2012 5:22 PM
  • I know the typical caveats apply for pre-release software but this is making design work for templates very difficult.  No chance of a patch in the mean time I suppose?
    Tuesday, June 19, 2012 9:12 PM
  • The root issue here is that if you have a touch-enabled device, the XAML designer will have issues. We have already addressed this issue for the next release.

    The workaround, and we have to admit is not a great one :(, is to disable the touch drivers on the machine. You can do this by going to the Device Manager in control panel and checking under “Human Interface Devices”. It’s possible that you will have multiple touch drivers installed and hence will need to disable these all.

    If this does not work, please let me know ASAP at unnir at microsoft dot com, and we will take an urgent look.

    Thanks,
    Unni


    Unni Ravindranathan, Program Manager, Microsoft Expression This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, June 21, 2012 4:01 AM
  • Could it be that sometimes these kind of problems are caused by the app running on the startscreen Debugger with Vs2012 and editing Xaml in Blend? I often have the feeling. Because when closing Vs and the app it often feels more "stable".


    lh

    Friday, June 22, 2012 10:15 PM