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

RadComboBox in User Control Error

4 Answers 97 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Tim DiPaula
Top achievements
Rank 1
Tim DiPaula asked on 30 Jul 2009, 09:22 PM
I am hosting a user control in a web part that is using the RadComboBox control.  When I add the control to the user control I get the following message:

Error Message:  "The base class includes the field 'cmd', but its type (Telerik.Web.UI.RadComboBox) is not compatible with the type of control (Telerik.Web.UI.RadComboBox). "

User Control aspx
<%@ Assembly Name="Mcps.OnlineCurriculum.UserControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=608131910b746488" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UnitSelectorControl.ascx.cs"
    Inherits="Mcps.OnlineCurriculum.UserControls.UnitSelectorControl" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <telerik:RadComboBox ID="cmd" runat="server" />

Any help would be great.



4 Answers, 1 is accepted

Sort by
0
Zaldy
Top achievements
Rank 1
answered on 03 Sep 2010, 05:17 PM
Where you able to find a solution to your problem?  Let me know.  Thanks.
0
T. Tsonev
Telerik team
answered on 07 Sep 2010, 04:05 PM
Hi Zaldy,

Please verify that the User Control is referencing exactly the same version of Telerik.Web.UI as you're using in the Web Part. In your case this should be 2009.2.701.35.

You can't have two different versions loaded in the same application. I hope this helps.

Kind regards,
Tsvetomir Tsonev
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
0
Zaldy
Top achievements
Rank 1
answered on 07 Sep 2010, 04:46 PM
Hi Tsvetomir,

Our version is different.  We are using version 2009.1.311.35.  I think we are only using one version.  How do I check if I have two different versions loaded in my application? 

Thanks.

-zaldy
0
T. Tsonev
Telerik team
answered on 08 Sep 2010, 07:35 AM
Hi Zaldy,

The easiest way to check is to do a search for Telerik.Web.UI references. In the original sample the Register directive is using a different version:

<%@ Register Assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

Make sure all references point to the same version.

Best wishes,
Tsvetomir Tsonev
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
Sharepoint Integration
Asked by
Tim DiPaula
Top achievements
Rank 1
Answers by
Zaldy
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or