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

COM exception on validation tooltip

5 Answers 127 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Michael MSTG
Top achievements
Rank 1
Michael MSTG asked on 28 Aug 2012, 09:41 PM
Scenario is there is a validation set up on the following property to ensure the value is greater than zero (I know, the control should have just set min to 1 but that's a different story).  As soon as the validation itself fires, I get a SL white screen with the stack trace below.

Telerk control version: 2012.2.607.1050

XAML
<telerik:RadNumericUpDown x:Name="udOdometerStart"
                          Value="{Binding OdometerStart, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}"
                          NumberDecimalDigits="0"
                          ValueFormat="Numeric"
                          Minimum="0"
                          Grid.Column="1"
                          Grid.Row="2"
                          Margin="5" />


Exception:
Timestamp: 8/28/2012 4:10:38 PM
Error: Error: Unhandled Error in Silverlight Application
Code: 4004    
Category: ManagedRuntimeError       
Message: System.Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, Boolean b)
   at System.Windows.DependencyObject.SetValue(DependencyProperty property, Boolean b)
   at System.Windows.Controls.ToolTip.OpenPopup()
   at System.Windows.Controls.ToolTip.OnIsOpenChanged(Boolean isOpen)
   at System.Windows.Controls.ToolTip.OnIsOpenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
   at System.Windows.DependencyObject.SetValue(DependencyProperty property, Boolean b)
   at Telerik.Windows.Controls.Chromes.ValidationTooltip.OnApplyTemplate()
   at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)   

5 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 30 Aug 2012, 01:58 PM
Hi Michael,

As you can see in this PITS issue the problem was fixed and the fix is available in the Q2 2012 SP (2012.2 725). It would be great if you can give it a try and let us know if everything work as expected.

All the best,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Michael MSTG
Top achievements
Rank 1
answered on 05 Oct 2012, 02:42 PM
We have upgraded to the latest release (2012.2.912.1050) and today we logged the following; could this still be related?:

System.Exception: [Arg_COMException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.10411.00&File=mscorlib.dll&Key=Arg_COMException
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.Transform_Inverse(Transform transform)
   at System.Windows.Media.Transform.get_Inverse()
   at Telerik.Windows.Controls.PopupPlacement.ScreenToPopupOffset(Double x, Double y)
   at Telerik.Windows.Controls.PopupPlacement.UpdatePosition()
   at Telerik.Windows.Controls.PopupPlacement.ChildElement_SizeChanged(Object sender, SizeChangedEventArgs e)
   at System.Windows.FrameworkElement.OnSizeChanged(Object sender, SizeChangedEventArgs e)
   at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)
0
Georgi
Telerik team
answered on 10 Oct 2012, 12:54 PM
Hi Michael,

This seems related to the Popup, but there is no way to know for sure what cause this until we debug it properly. So far we have tried to reproduce it, but with no luck. Therefore It would be great if you can send us a simple project where the exception is present.
Anyway any information on how the exception is thrown could help.

Greetings,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Michael MSTG
Top achievements
Rank 1
answered on 23 Jan 2014, 04:28 PM
Sorry to resurrect an old thread however with the latest version of the telerik assemblies we are still experiencing the same exception.  Unfortunately I cannot tell you exactly how as we cannot duplicate it however we are logging it in our logs from users.

Assembly version: 2013.3.1204.1050
Controls used where the exception occurred: RadComboBox, RadNumericUpDown, RadGridView, RadDateTimePicker

************** Exception Information **************
System.Exception: [Arg_COMException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.20913.00&File=mscorlib.dll&Key=Arg_COMException
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.Transform_Inverse(Transform transform)
   at System.Windows.Media.Transform.get_Inverse()
   at Telerik.Windows.Controls.PopupPlacement.ScreenToPopupOffset(Double x, Double y)
   at Telerik.Windows.Controls.PopupPlacement.UpdatePosition()
   at Telerik.Windows.Controls.PopupPlacement.ChildElement_SizeChanged(Object sender, SizeChangedEventArgs e)
   at System.Windows.FrameworkElement.OnSizeChanged(Object sender, SizeChangedEventArgs e)
   at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)

************** Browser Information **************
Browser: Microsoft Internet Explorer 5.0
Platform: Win32
Product Name: MSIE
Product Version: 9.0
User Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; Tablet PC 2.0)
Browser Version: True
Total Memory: 71,773,004

************** Assembly Part Information **************
Part: Microsoft.Practices.Composite.dll
Part: Microsoft.Practices.Composite.Presentation.dll
Part: Microsoft.Practices.ServiceLocation.dll
Part: SLaB.Navigation.ContentLoaders.Utilities.dll
Part: SLaB.Navigation.ContentLoaders.Xap.dll
Part: SLaB.Navigation.Utilities.dll
Part: SLaB.Utilities.dll
Part: System.ComponentModel.Composition.dll
Part: System.ComponentModel.Composition.Initialization.dll
Part: System.ComponentModel.DataAnnotations.dll
Part: System.ServiceModel.DomainServices.Client.dll
Part: System.ServiceModel.DomainServices.Client.Web.dll
Part: System.ServiceModel.Web.Extensions.dll
Part: System.Windows.Controls.Data.dll
Part: System.Windows.Controls.Data.Input.dll
Part: System.Windows.Controls.dll
Part: System.Windows.Controls.DomainServices.dll
Part: System.Windows.Controls.Input.dll
Part: System.Windows.Controls.Input.Toolkit.dll
Part: System.Windows.Controls.Navigation.dll
Part: System.Windows.Controls.Toolkit.dll
Part: System.Windows.Controls.Toolkit.Internals.dll
Part: System.Windows.Data.dll
Part: Telerik.Windows.Controls.Charting.dll
Part: Telerik.Windows.Controls.Data.dll
Part: Telerik.Windows.Controls.dll
Part: Telerik.Windows.Controls.Docking.dll
Part: Telerik.Windows.Controls.DomainServices.dll
Part: Telerik.Windows.Controls.GridView.dll
Part: Telerik.Windows.Controls.Input.dll
Part: Telerik.Windows.Controls.Navigation.dll
Part: Telerik.Windows.Controls.RibbonView.dll
Part: Telerik.Windows.Controls.RichTextBoxUI.dll
Part: Telerik.Windows.Controls.ScheduleView.dll
Part: Telerik.Windows.Data.dll
Part: Telerik.Windows.Documents.dll
Part: Telerik.Windows.Documents.FormatProviders.Html.dll
Part: Telerik.Windows.Themes.Office_Silver.dll
Part: SLaB.Utilities.Xap.dll
Part: Microsoft.CSharp.dll
Part: System.Xml.Linq.dll
Part: Telerik.Windows.Documents.Flow.dll
Part: Telerik.Windows.Documents.Core.dll
0
Georgi
Telerik team
answered on 29 Jan 2014, 06:01 AM
Hi Michael,

We have retested the issue, but unfortunately we are still not able to reproduce it.
As the exception is not meaningful and it can't point at any direction it is really hard to guess how it can be reproduced.
So if your users provide you with more information and you can duplicate the issue, please don't hesitate to contact us again.

Regards,
Georgi
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
NumericUpDown
Asked by
Michael MSTG
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Michael MSTG
Top achievements
Rank 1
Share this question
or