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

error in rendering control

6 Answers 255 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
tcl4p
Top achievements
Rank 1
tcl4p asked on 08 Nov 2009, 08:39 PM
I made a change to the property AllowCustomText setting it to false and when I did I received the following message where the control was on the page. "There was an error rendering the control.  Unable to cast object of type telerik.web.control.radcombobx to telerik.web.control.radcombobox.  What does this mean and how do I correct it?

6 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 11 Nov 2009, 04:24 PM
Hello tcl4p,

I suppose this is a design-time error.

If the Telerik.Web.UI.dll assembly is updated while a page using RadControl(s) is in Design-Time, VisualStudio creates two different versions of the assembly, hence two different versions of the same RadControl(s) are available.

Suggested solution:

Restart Visual Studio.



Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
tcl4p
Top achievements
Rank 1
answered on 11 Nov 2009, 09:46 PM
Thanks for the reply, but restarting Visual Studio did not work.  Every time I change a property for the combo box, I get the same error.

Tom
0
Veselin Vasilev
Telerik team
answered on 17 Nov 2009, 01:05 PM
Hello,

Let us know the exact version of the Visual studio, any service packs installed?
What is the target framework and the exact version of the RadControls.
Do you have the Telerik.Web.Design assembly in the GAC?

Sincerely yours,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
tcl4p
Top achievements
Rank 1
answered on 22 Nov 2009, 05:31 PM
I'm using visual studio 2008 with all of the latest service packs version3.5 sp1. I have installed Q2 2008 controls.  I'm not sure what your referring to with the Telerik.Web.Design assembly in the GAC, but I do not see any such item in my program references.

Thanks,
Tom
0
Simon
Telerik team
answered on 23 Nov 2009, 02:25 PM
Hello tcl4p,

Please try the following:
  1. Remove all references to the Telerik.Web.UI assembly.
  2. Close all Design-time VS documents.
  3. Close VS and delete the ASP.NET cache of your Web Site/Project located in DRIVE:\Windows\Microsoft.NET\Framework\v[...]\Temporary ASP.NET Files
  4. Open VS and add the Telerik.Web.UI reference.
Does this help?

All the best,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
tcl4p
Top achievements
Rank 1
answered on 23 Nov 2009, 05:49 PM
Thanks, that did it.

Tom
Tags
ComboBox
Asked by
tcl4p
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
tcl4p
Top achievements
Rank 1
Simon
Telerik team
Share this question
or