Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Exception: "The root Visual of a VisualTarget cannot have a parent" with XamRibbonWindow
posted

Hello

We recently had an exception with a strange call stack that just showed some method in the XamRibbonWindow.

Maybe someone else also had this issue and can give any advise as to what may be causing the exception.

The scenario was the following: The user was working in Outlook or Excel and was then moving the mouse over our application window (which was open in the background). While doing that the exception occurred. The user was also working with our application under Citrix.

(Windows 10, .NET 4.7.2 (4.7.3429.0), Citrix: 4.6.0.12010, Infragistics: 16.1)

Thanks for any advise or suggestions.

Karsten

The complete call stack is:

System.ArgumentException: The root Visual of a VisualTarget cannot have a parent.
at System.Windows.Media.CompositionTarget.SetRootVisual(Visual visual)
at System.Windows.Media.CompositionTarget.set_RootVisual(Visual value)
at System.Windows.Interop.HwndTarget.set_RootVisual(Visual value)
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
at System.Windows.Window.SetRootVisual()
at System.Windows.Window.SetRootVisualAndUpdateSTC()
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.ShowHelper(Object booleanBox)
at Infragistics.Windows.Ribbon.XamRibbonWindow.VerifyExternalResizeWindows()
at Infragistics.Windows.Ribbon.XamRibbonWindow.HookProc(IntPtr hwnd, Int32 message, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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 args, Int32 numArgs, Delegate catchHandler)

Parents Reply Children
No Data