RadComboBox in User Control Error

5 posts, 0 answers
  1. Tim DiPaula
    Tim DiPaula avatar
    16 posts
    Member since:
    Jul 2009

    Posted 30 Jul 2009 Link to this post

    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.



  2. Zaldy
    Zaldy avatar
    2 posts
    Member since:
    Sep 2010

    Posted 03 Sep 2010 Link to this post

    Where you able to find a solution to your problem?  Let me know.  Thanks.

  3. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 07 Sep 2010 Link to this post

    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
  4. Zaldy
    Zaldy avatar
    2 posts
    Member since:
    Sep 2010

    Posted 07 Sep 2010 Link to this post

    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
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 08 Sep 2010 Link to this post

    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
Back to Top