Unplanned
Last Updated: 26 Aug 2020 09:01 by ADMIN
Sunny
Created on: 25 Aug 2020 17:18
Category: UI for WinForms
Type: Bug Report
1
Control Spy with .NET 2.0 failure

I'm trying to initialize RadControlSpyForm in a .NET 2.0 application and it throws the following exception:

System.InvalidCastException: 'Unable to cast object of type 'System.Windows.Forms.SplitContainer' to type 'System.ComponentModel.ISupportInitialize'.

I did some research, and I found that since SplitContainer doesn't inherit from System.ComponentModel.ISupportInitialize until .NET 4.0, this message shows up in solutions where a project is downgraded from .NET 4.0, but the Form designer isn't regenerated to remove the SplitContainer cast to ISupportInitialize to call BeginInit() and EndInit().

 

1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 26 Aug 2020 09:01

Hello, Sunny,

Indeed, our RadControlSpyForm internally uses the MS SplitContainer which throws the described exception when the application is run under .NET Framework 2.0. I confirm that it is an issue with the spy tool.

I have approved the item and you can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.