This is a migrated thread and some comments may be shown as answers.

System.CrossAppDomainMarshaledException was unhandled

1 Answer 30 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Trevor
Top achievements
Rank 1
Trevor asked on 03 Aug 2011, 05:08 PM
I would really appreciate your advice on this error. My menu works just fine, till I start minimizing it and clicking on the tabs. Sometimes it just takes simply minimizing the ribbonview and trying to click a tab item, other times i click around randomly  and happen across this.

The exception is as follows:
System.ArgumentException: Value does not fall within the expected range.
   at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
   at System.Windows.UIElement.UpdateLayout()
   at Pos1.Utilities.DisplayChildWindow.Show(ChildWindow window)
   at Pos1.App.Application_UnhandledException(Object sender, ApplicationUnhandledExceptionEventArgs e)
   at MS.Internal.Error.CallApplicationUEHandler(Exception e)
   at MS.Internal.Error.CallAUEHandler(UInt32 hr, UInt32& bIsHandled)
   System.CrossAppDomainMarshaledException was unhandled

According to a bit of googling this seems to be a silverlight problem when it comes to dealing with invisible controls. I see that in this thread though the problem was report and then fixed in a new release of the telerik control.

EDIT: On a separate topic, if i could request a feature: Would it be possible to enable a function to disallow the preview functionality on this control. I've managed to find a work around for it but it would help a bit to just simply uncheck an option to prevent it.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 08 Aug 2011, 02:52 PM
Hello Trevor,

 Could you please elaborate more on the exception you have come up with? Is it possible for you to isolate this in a sample project so that we could try to reproduce it and investigate it further?
As for the feature you need, what do you mean by "preview functionality" ?

Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
RibbonView and RibbonWindow
Asked by
Trevor
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or