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

why did i get the error unable to cast object of type 'Telerik.Web.UI.RadTreeview' to type 'Telerik.Web.UI.controlitemcontainer'

1 Answer 613 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 11 Mar 2013, 05:33 PM
I added the Radtreeview to asp:content and got this error msg. But if I added the RadTreeview to the following:

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<div>

 

 

 

<telerik:RadTreeView ID="RadTreeView1" runat="server">

 

 

</telerik:RadTreeView>

 

 

 

</div>

 

 

</form>

 

</

 

body>

no error message. Did anybody have similar issue before? thanks

 

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 14 Mar 2013, 09:57 AM
Hi John,

The exception that you are getting is a very general one. It indicates that you can not cast an object from one type to another type. Please take a look at the following post where you can fin more information related to similar issues:
http://stackoverflow.com/questions/12444036/unable-to-cast-object-of-type-x-to-y
http://www.hanselman.com/blog/FusionLoaderContextsUnableToCastObjectOfTypeWhateverToTypeWhatever.aspx

Kind regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
John
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or