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

InvalidCastException using RadComboBox

2 Answers 152 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lisa Smith
Top achievements
Rank 1
Lisa Smith asked on 12 Apr 2011, 08:54 PM

I'm randomly getting the error below when clicking on a RadComboBox. I upgraded to version 2010.3.1314.1040 hoping that would solve the problem, but it did not. Any ideas?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.3; .NET4.0C; .NET4.0E; MS-RTC LM 8)
Timestamp: Tue, 12 Apr 2011 19:12:24 UTC

Message: Unhandled Error in Silverlight Application
Code: 4004   
Category: ManagedRuntimeError      
Message: System.InvalidCastException: Specified cast is not valid.
   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 Telerik.Windows.Controls.PopupWrapper.AdjustPopupLocation()
   at Telerik.Windows.Controls.RadComboBox.AdjustPopupLocation()
   at Telerik.Windows.Controls.RadComboBox.UpdateItemsVisibility(Boolean showAll, List`1 matchIndices)
   at Telerik.Windows.Controls.RadComboBox.DropDownPopupOpened(Object sender, EventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)    

Line: 58
Char: 17
Code: 0 

2 Answers, 1 is accepted

Sort by
0
Gonzalo
Top achievements
Rank 2
answered on 12 Apr 2011, 10:05 PM
Just a thought. Make sure when setting make sure that all your references are pointing out to the new controls. I have had problems when referencing different versions of dlls by mistake. In other words, check you references and make sure that all telerik controls being used are of the same series and not mixed...

Best wishes,

G
0
Valeri Hristov
Telerik team
answered on 15 Apr 2011, 03:09 PM
Hi Lisa,

We received similar bug reports in the past, but we never managed to get a project that could be used to observe the problem. If you could send us a simple application that we can debug we will reply with a solution as soon as possible.

Greetings,
Valeri Hristov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Lisa Smith
Top achievements
Rank 1
Answers by
Gonzalo
Top achievements
Rank 2
Valeri Hristov
Telerik team
Share this question
or