RadComboBox [Control_TargetTypeMismatch]

12 posts, 0 answers
  1. Jay
    Jay avatar
    11 posts
    Member since:
    Sep 2010

    Posted 26 Jan 2011 Link to this post

    I have a Silverlight 4 application where I’m using various Telerik controls such as the GridView, Expander, Button, etc.  Whenever I try to add a RadComboBox to any user control the designer throws an error ‘InvalidOperationException was throw on “RadComboBox”:[Control_TargetTypeMismatch].’

    Error Text:

    Error 2 [Control_TargetTypeMismatch]
    Arguments:
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.51204.0&File=System.Windows.dll&Key=Control_TargetTypeMismatch

    Xaml:

    <UserControl x:Class="MyApp.DeleteMe"
        mc:Ignorable="d"
        d:DesignHeight="300" d:DesignWidth="400" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
          
        <Grid x:Name="LayoutRoot" Background="White">
            <telerik:RadExpander Height="50" HorizontalAlignment="Left" Margin="209,230,0,0" Name="radExpander1" VerticalAlignment="Top" Width="100" />
            <telerik:RadComboBox />
        </Grid>
    </UserControl>
  2. Jay
    Jay avatar
    11 posts
    Member since:
    Sep 2010

    Posted 26 Jan 2011 Link to this post

    Nevermind: I just needed to build.  =)
  3. DevCraft banner
  4. Jason Maronge
    Jason Maronge avatar
    322 posts
    Member since:
    Jan 2005

    Posted 19 May 2011 Link to this post

    I get the following error when putting any RadButton or RadComboBox on the designer or is I open a designer with one on it.  It allows me to add some controls but not others through the designer.  I am using the latest internal builds so I think there may be a version problem somewhere. 

    I have been getting it for the last couple of internal builds.  I have uninstalled the last installable version,  2011_1_0419 to see if that helped and it did not.  I have done solution cleans and rebuilds, deleted the bin and obj folders, and nothing seems to help.

    Any suggestions?

    <UserControl x:Class="XXXXX"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                 Name="View"
                 Height="Auto"
                 d:DesignHeight="227"
                 d:DesignWidth="693"
                 mc:Ignorable="d">
        <UserControl.Resources />
        <Grid x:Name="LayoutRoot">
            <telerik:RadButton />
        </Grid>
    </UserControl>


    Error    159    [Control_TargetTypeMismatch]
    Arguments:
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60310.0&File=System.Windows.dll&Key=Control_TargetTypeMismatch

    Thanks,

    Jason
  5. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 24 May 2011 Link to this post

    Hi Jason Maronge,

    We are not aware of such problem. Could you please provide some more info that could help us pinpoint the problem. When did the problem occurred, after you installed latest version 2011_1_0419 or with some of the internal builds? Also how do you upgrade your project references and does this happen when create a new project from scratch and add RadButton/RadComboBox. My guess is that something has gone wrong on your project when upgrading, a dll is cached or something like this.

    Kind regards,
    Boyan
    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
  6. Jason Maronge
    Jason Maronge avatar
    322 posts
    Member since:
    Jan 2005

    Posted 31 May 2011 Link to this post

    Sorry for the late reply, I was on vacation :).  I noticed the problem after an update with an internal build.  The one after the 0419 release.  I upgraded the project with the extensions in VS.  I have also tried to do it manually with subsequent internal builds to see if that fixes the problem.  I can add a new Page or UserControl to my current project and it seems to work, but if I pull up a UserControl with one already on it it gives me the error.  I was thinking it was an issue of caching or something in the GAC but I uninstalled the silverlight 0419 and referenced the latest build by hand and I am still getting the error.  Is there some other place it stores/caches them?

    Thanks,

    Jason
  7. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 03 Jun 2011 Link to this post

    Hi Jason Maronge,

    Here is two things you can try:
    1. Start a Windows Explorer instance and navigate to the following folder:
    %localappdata%\Microsoft\VisualStudio\10.0\ProjectAssemblies
    and delete if there is anything there (some project assemblies might be cached there)
    2. Add in GAC the assemblies that you want to use if they are not there

    Also, are you converting or converted this project from SL3. If the above steps does not help, could you please send us a project where the error is reproducible so we can debug it as I am having problems to reproduce the bad behavior at our side.

    Best wishes,
    Boyan
    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
  8. Jason Maronge
    Jason Maronge avatar
    322 posts
    Member since:
    Jan 2005

    Posted 07 Jun 2011 Link to this post

    1. There was nothing to delete in the folder specified. 
    2. I added them to the GAC and that caused build problems.  It keep telling me that it could not find System.Windows.dll or one of its dependencies. 

    It was not converted from SL3, it was new SL4 project.

    I did however decide to try and open up one the projects in a blank solution and everything worked fine.  Not sure what that means but when I use the solution with all my projects I have the issue.  I am under a tight deadline right now so I can't spend too much time on this but once things settle down I will be glad to send you my stuff in hopes of reproducing it.

    Jason
  9. Jason Maronge
    Jason Maronge avatar
    322 posts
    Member since:
    Jan 2005

    Posted 08 Jun 2011 Link to this post

    I have attached a project to a support ticket that was giving me the error.  It was a brand news project trying to test the RadRichTextbox control.

    Its subject is "Attachment for thread about Control_TargetTypeMismatch" and ticket ID 432381

    Jason
  10. Simon
    Simon avatar
    159 posts
    Member since:
    Sep 2010

    Posted 13 Jun 2011 Link to this post

    I have the exact same problem with the RadMaskedTextBox...
  11. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 16 Jun 2011 Link to this post

    Hello Simon,

    We are having problems reproducing the bad behavior, even when Jason send us a project it worked fine at our side. It appears that it is something related to upgrading and old project, however we can't catch it for now. Could you please provide some info about your project and in more details how you have upgraded the references. Are you using an internal build and how you handle the binaries-- do you copy them to some folder in source control or just install them in default path and reference them from that folder.

    Regards,
    Boyan
    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
  12. CHRISTIAN
    CHRISTIAN avatar
    39 posts
    Member since:
    Nov 2010

    Posted 14 Jul 2011 Link to this post

    We had the same Issue.
    Our local installed telerik Dlls were older than the ones in the project.
  13. Kevin
    Kevin avatar
    24 posts
    Member since:
    Apr 2011

    Posted 01 Sep 2011 Link to this post

    same problem here. I am trying to upgrade just the Dlls on a project while having the older version installed on my box.
Back to Top
DevCraft banner