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

RadComboBox [Control_TargetTypeMismatch]

11 Answers 218 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 26 Jan 2011, 07:52 PM
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>

11 Answers, 1 is accepted

Sort by
0
Jay
Top achievements
Rank 1
answered on 26 Jan 2011, 08:08 PM
Nevermind: I just needed to build.  =)
0
Jason Maronge
Top achievements
Rank 1
answered on 19 May 2011, 04:09 PM
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
0
Boyan
Telerik team
answered on 24 May 2011, 09:56 AM
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
0
Jason Maronge
Top achievements
Rank 1
answered on 31 May 2011, 02:43 PM
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
0
Boyan
Telerik team
answered on 03 Jun 2011, 10:46 AM
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
0
Jason Maronge
Top achievements
Rank 1
answered on 07 Jun 2011, 03:03 PM
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
0
Jason Maronge
Top achievements
Rank 1
answered on 08 Jun 2011, 05:03 PM
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
0
Simon
Top achievements
Rank 1
answered on 13 Jun 2011, 12:48 PM
I have the exact same problem with the RadMaskedTextBox...
0
Boyan
Telerik team
answered on 16 Jun 2011, 08:14 AM
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
0
CHRISTIAN
Top achievements
Rank 1
answered on 14 Jul 2011, 02:33 PM
We had the same Issue.
Our local installed telerik Dlls were older than the ones in the project.
0
Kevin
Top achievements
Rank 1
answered on 01 Sep 2011, 04:36 PM
same problem here. I am trying to upgrade just the Dlls on a project while having the older version installed on my box.
Tags
ComboBox
Asked by
Jay
Top achievements
Rank 1
Answers by
Jay
Top achievements
Rank 1
Jason Maronge
Top achievements
Rank 1
Boyan
Telerik team
Simon
Top achievements
Rank 1
CHRISTIAN
Top achievements
Rank 1
Kevin
Top achievements
Rank 1
Share this question
or