Telerik Error after installing - Windows 10 KB5005033

1 Answer 196 Views
ComboBox
Jonathan
Top achievements
Rank 1
Iron
Veteran
Jonathan asked on 10 Sep 2021, 02:43 PM
Hi I just installed a MS Security Update.

Windows 10 KB5005033 -  https://support.microsoft.com/en-au/topic/august-10-2021-kb5005033-os-builds-19041-1165-19042-1165-and-19043-1165-b4c77d08-435a-4833-b9f7-e092372079a4

Now I get this ugly Telerik Error.  any ideas?  thx



Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at Telerik.Windows.Controls.RadComboBoxAutomationPeer.RaiseSelectionEvents(SelectionChangedEventArgs e) at System.Windows.Controls.Primitives.Selector.SelectionChanger.End() at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(ItemInfo info, Boolean assumeInItemsCollection) at System.Windows.Controls.Primitives.Selector.OnSelectedIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at Flom2K18.Truckbook.btnRepeat_Click(Object sender, RoutedEventArgs e) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.Controls.Primitives.ButtonBase.OnClick() at System.Windows.Controls.Button.OnClick() at Telerik.Windows.Controls.RadButton.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonDown(MouseButtonEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(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) 

1 Answer, 1 is accepted

Sort by
1
Accepted
Dilyan Traykov
Telerik team
answered on 14 Sep 2021, 11:11 AM

Hi Jonathan,

Thank you for the provided stack trace.

This exception seems to be caused by the creation of automation peers. If you do not require this, you can set the AutomationMode property of the AutomationManager to Disabled:

    public App() 
    { 
        AutomationManager.AutomationMode = AutomationMode.Disabled; 
        this.InitializeComponent(); 
    } 

If you do not find this possible, please demonstrate this exception in a small sample project so that I can further investigate its cause at my end.

If you're unable to do so, please share more details on the action steps which lead to the exception. As I noticed that it is fired after a button is clicked, you can share the code from the btnRepeat_Click handler. Please also share the machine's specifications and more specifically - whether it is a touch device or not.

I will be awaiting your reply.

Regards,
Dilyan Traykov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Jonathan
Top achievements
Rank 1
Iron
Veteran
commented on 15 Sep 2021, 04:55 PM

thanks..

I have an older version currently running... where can I find

using Telerik.Windows.Automation.Peers;

 

 

Dilyan Traykov
Telerik team
commented on 16 Sep 2021, 10:24 AM

Hello Jonathan,
The AutomationManager class was introduced with the Q3 2014 release of the controls. If you're using a prior version, it will not be available.
With that said, it is possible that the issue you observe has been fixed with a later version so I can suggest upgrading if you find this possible.

Jonathan
Top achievements
Rank 1
Iron
Veteran
commented on 22 Oct 2021, 05:57 PM

Hi.. where can I find the old downloads?

The new version breaks my code.

thx

Jonathan
Top achievements
Rank 1
Iron
Veteran
commented on 22 Oct 2021, 06:15 PM

I installed a 2018 Version.. but do not see Telerik.Windows.Automation.Peers
Jonathan
Top achievements
Rank 1
Iron
Veteran
commented on 25 Oct 2021, 10:50 AM

Hi... Any ideas?
Dilyan Traykov
Telerik team
commented on 25 Oct 2021, 12:28 PM

Hi Jonathan,
I tried this with the 2018.1.116 version of the controls, however, the Telerik.Windows.Automation.Peers namespace is in fact present at my end. I'm providing a small sample project to demonstrate this. Please observe the App.xaml.cs file.
As for acquiring a previous version, you can only access the downloads for the releases in which you've had a valid license. If you'd like us to enable an earlier version for you to download, please specify which one.
Jonathan
Top achievements
Rank 1
Iron
Veteran
commented on 25 Oct 2021, 01:10 PM

Hi.. I have 2018.1.116 and the most recent. I can't seem to locate Telerik.Windows.Automation.Peers. What reference do I need to add? thx
Dilyan Traykov
Telerik team
commented on 26 Oct 2021, 02:09 PM

Hi Jonathan,
To use the members of the Telerik.Windows.Automation.Peers namespace, you need to reference the Telerik.Windows.Controls assembly as I have done in the sample project. Please let me know whether doing so resolves your issue.
Jonathan
Top achievements
Rank 1
Iron
Veteran
commented on 26 Oct 2021, 02:12 PM

thx again!
Tags
ComboBox
Asked by
Jonathan
Top achievements
Rank 1
Iron
Veteran
Answers by
Dilyan Traykov
Telerik team
Share this question
or