Can anyone help with this error?
Cannot find type 'Telerik.Windows.Controls.RadContextMenu'
I get this error when attempting to load the form containing Telerik controls. It is looking for the RadDropDownButton.cs file in the InitializeComponent().
Is this an installation issue or a licensing issue? I'm currently evaluating the Telerik controls.
G
Cannot find type 'Telerik.Windows.Controls.RadContextMenu'
I get this error when attempting to load the form containing Telerik controls. It is looking for the RadDropDownButton.cs file in the InitializeComponent().
Is this an installation issue or a licensing issue? I'm currently evaluating the Telerik controls.
G
5 Answers, 1 is accepted
0
Hi,
Vlad
the Telerik team
Do you have reference to our navigation assembly?
Greetings,Vlad
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

Greg
Top achievements
Rank 2
answered on 20 Apr 2011, 04:22 PM
Hello,
Yes, I have the following references
Telerik.Windows.Controls.Data, .Docking, .GridView, .Input, .Navigation,
Telerik.Windows.Data
Telerik.Windows.Themes.Vista
The error is at: <telerik:RadDocking>
I have an example project with this same control and it works fine. Is there something I'm doing incorrect? My example project isn't a WPF USERCONTROL, could that be the difference?
I've examined the reference's and they are using the same paths as the example project that works.
This is my XAML file:
<UserControl
x:Class="OSPInSight.Common.Forms.PatchEditor"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Height="600" Width="800">
<Grid>
<Label Name="lblPlaceType" Content="Place Type:" Height="25" Width="75" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,3,0,0"/>
<ComboBox Name="cboPlaceType" Height="22" Width="150" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="78,5,0,0"/>
<Label Name="labName" Content="Name:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="240,3,0,0"/>
<telerik:RadDropDownButton Content="List Order..." Height="22" Width="88" Margin="285,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top">
<telerik:RadDropDownButton.DropDownContent>
<telerik:RadContextMenu>
<telerik:RadMenuItem Header="Name"/>
<telerik:RadMenuItem Header="CLLI"/>
<telerik:RadMenuItem Header="Street"/>
</telerik:RadContextMenu>
</telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>
<ComboBox Name="cboGroup" Height="22" Width="250" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="378,5,0,0"/>
<Button Name="btnMap" Content="Select Map Item" Height="22" Width="100" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="640,5,0,0" Click="btnMap_Click"/>
<Button Name="btnClose" Content="Close" Height="22" Width="50" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,5,5,0" Click="Close_Click"/>
<telerik:RadDocking>
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer>
<telerik:RadPaneGroup>
<telerik:RadPane Header="Create Patches" CanUserClose="False">
<Grid>
<Label Name="lblRoomA" Content="Room:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="15,5,0,0"></Label>
<ComboBox Name="RoomA" Height="20" Width="270" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="62,8,0,0"/>
<Label Name="lblRackA" Content="Rack:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="15,33,0,0"></Label>
<ComboBox Name="RackA" Height="20" Width="270" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="62,36,0,0"/>
<Label Name="lblDeviceA" Content="Device:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="15,61,0,0"></Label>
<ComboBox Name="DeviceA" Height="20" Width="270" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="62,64,0,0"/>
<telerik:RadGridView x:Name="radGridViewA" AutoGenerateColumns="False" Sorting ="radGridView_Sorting"
Filtered="radGridView_FilteredA" ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
DataLoadMode="Asynchronous" Margin="10,100,422,0" SelectionMode="Extended"
SelectionUnit="FullRow" ClipboardCopyMode="All" AlternationCount="10"
AlternateRowBackground="Coral" Visibility="Visible" Canvas.Left="-530" Canvas.Top="-31"
Width="320">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding jackA}" Header="jack no." />
<telerik:GridViewDataColumn DataMemberBinding="{Binding groupA}" Header="group: fiberid" />
</telerik:RadGridView.Columns>
</telerik:RadGridView >
<GridSplitter Height="500" HorizontalAlignment="Left" Margin="350,5,0,0" Name="gridSplitter1" VerticalAlignment="Top" Width="8" />
<Label Name="lblRoomB" Content="Room:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="392,8,0,0"></Label>
<ComboBox Name="RoomB" Height="20" Width="270" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="444,8,0,0"/>
<Label Name="lblRackB" Content="Rack:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="392,33,0,0"></Label>
<ComboBox Name="RackB" Height="20" Width="270" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="444,36,0,0"/>
<Label Name="lblDeviceB" Content="Device:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="392,61,0,0"></Label>
<ComboBox Name="DeviceB" Height="20" Width="270" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="444,64,0,0"/>
<telerik:RadGridView x:Name="radGridViewB" AutoGenerateColumns="False" Sorting ="radGridView_Sorting"
Filtered="radGridView_FilteredB" ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
DataLoadMode="Asynchronous" Margin="350,100,0,0" SelectionMode="Extended"
SelectionUnit="FullRow" ClipboardCopyMode="All" AlternationCount="10"
AlternateRowBackground="Coral" Visibility="Visible" Canvas.Left="-530" Canvas.Top="-31"
Width="320">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding jackB}" Header="jack no." />
<telerik:GridViewDataColumn DataMemberBinding="{Binding groupB}" Header="group: fiberid" />
</telerik:RadGridView.Columns>
</telerik:RadGridView >
</Grid>
</telerik:RadPane>
<telerik:RadPane Header="Existing Patches" CanUserClose="False">
<Grid>
<Button Name="btnDeletePatch" Content="Delete Patch" Height="25" Width="75" Margin="5,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnDeletePatch_Click" />
<telerik:RadDropDownButton Content="Display Option..." Height="25" Width="100" Margin="90,5,0,0" Visibility="Visible" Canvas.Left="211" Canvas.Top="0" HorizontalAlignment="Left" VerticalAlignment="Top">
<telerik:RadDropDownButton.DropDownContent>
<telerik:RadContextMenu>
<telerik:RadMenuItem Header="Group: FiberID or Label" />
<telerik:RadMenuItem Header="Device (Jack #)" />
<telerik:RadMenuItem Header=" Room Rack Device (Jack #)" />
</telerik:RadContextMenu>
</telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>
<Button Name="btnUpdate" Content="Update" Height="25" Width="65" Margin="200,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnUpdate_Click" />
<Button Name="btnCancel" Content="Cancel" Height="25" Width="65" Margin="270,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnCancel_Click" />
<Button Name="btnPrint" Content="Print" Height="25" Width="65" Margin="340,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnPrint_Click" />
<Button Name="btnExportData" Content="Export..." Height="25" Width="65" Margin="0,5,5,0" HorizontalAlignment="Right" VerticalAlignment="Top" Click="btnExportData_Click" Visibility="Visible" Canvas.Left="-505" Canvas.Top="-35" />
<telerik:RadGridView x:Name="radGridViewPatch" AutoGenerateColumns="False" Sorting ="radGridView_Sorting"
Filtered="radGridView_FilteredPatch" ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
DataLoadMode="Asynchronous" Margin="0,50,0,0" SelectionMode="Extended"
SelectionUnit="FullRow" ClipboardCopyMode="All" AlternationCount="10"
AlternateRowBackground="Coral" Visibility="Visible" Canvas.Left="-530" Canvas.Top="-31"
Width="745">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding displayA}" Header="group: fiber / label" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding patchtype}" Header="patch type" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding label}" Header="label"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding length}" Header="length"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding lengthunits}" Header="length units"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding displayB}" Header="group: fiber / label"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView >
</Grid>
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
</telerik:RadDocking>
</Grid>
</UserControl>
Yes, I have the following references
Telerik.Windows.Controls.Data, .Docking, .GridView, .Input, .Navigation,
Telerik.Windows.Data
Telerik.Windows.Themes.Vista
The error is at: <telerik:RadDocking>
I have an example project with this same control and it works fine. Is there something I'm doing incorrect? My example project isn't a WPF USERCONTROL, could that be the difference?
I've examined the reference's and they are using the same paths as the example project that works.
This is my XAML file:
<UserControl
x:Class="OSPInSight.Common.Forms.PatchEditor"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Height="600" Width="800">
<Grid>
<Label Name="lblPlaceType" Content="Place Type:" Height="25" Width="75" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,3,0,0"/>
<ComboBox Name="cboPlaceType" Height="22" Width="150" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="78,5,0,0"/>
<Label Name="labName" Content="Name:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="240,3,0,0"/>
<telerik:RadDropDownButton Content="List Order..." Height="22" Width="88" Margin="285,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top">
<telerik:RadDropDownButton.DropDownContent>
<telerik:RadContextMenu>
<telerik:RadMenuItem Header="Name"/>
<telerik:RadMenuItem Header="CLLI"/>
<telerik:RadMenuItem Header="Street"/>
</telerik:RadContextMenu>
</telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>
<ComboBox Name="cboGroup" Height="22" Width="250" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="378,5,0,0"/>
<Button Name="btnMap" Content="Select Map Item" Height="22" Width="100" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="640,5,0,0" Click="btnMap_Click"/>
<Button Name="btnClose" Content="Close" Height="22" Width="50" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,5,5,0" Click="Close_Click"/>
<telerik:RadDocking>
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer>
<telerik:RadPaneGroup>
<telerik:RadPane Header="Create Patches" CanUserClose="False">
<Grid>
<Label Name="lblRoomA" Content="Room:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="15,5,0,0"></Label>
<ComboBox Name="RoomA" Height="20" Width="270" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="62,8,0,0"/>
<Label Name="lblRackA" Content="Rack:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="15,33,0,0"></Label>
<ComboBox Name="RackA" Height="20" Width="270" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="62,36,0,0"/>
<Label Name="lblDeviceA" Content="Device:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="15,61,0,0"></Label>
<ComboBox Name="DeviceA" Height="20" Width="270" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="62,64,0,0"/>
<telerik:RadGridView x:Name="radGridViewA" AutoGenerateColumns="False" Sorting ="radGridView_Sorting"
Filtered="radGridView_FilteredA" ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
DataLoadMode="Asynchronous" Margin="10,100,422,0" SelectionMode="Extended"
SelectionUnit="FullRow" ClipboardCopyMode="All" AlternationCount="10"
AlternateRowBackground="Coral" Visibility="Visible" Canvas.Left="-530" Canvas.Top="-31"
Width="320">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding jackA}" Header="jack no." />
<telerik:GridViewDataColumn DataMemberBinding="{Binding groupA}" Header="group: fiberid" />
</telerik:RadGridView.Columns>
</telerik:RadGridView >
<GridSplitter Height="500" HorizontalAlignment="Left" Margin="350,5,0,0" Name="gridSplitter1" VerticalAlignment="Top" Width="8" />
<Label Name="lblRoomB" Content="Room:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="392,8,0,0"></Label>
<ComboBox Name="RoomB" Height="20" Width="270" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="444,8,0,0"/>
<Label Name="lblRackB" Content="Rack:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="392,33,0,0"></Label>
<ComboBox Name="RackB" Height="20" Width="270" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="444,36,0,0"/>
<Label Name="lblDeviceB" Content="Device:" Height="25" Width="50" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="392,61,0,0"></Label>
<ComboBox Name="DeviceB" Height="20" Width="270" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="444,64,0,0"/>
<telerik:RadGridView x:Name="radGridViewB" AutoGenerateColumns="False" Sorting ="radGridView_Sorting"
Filtered="radGridView_FilteredB" ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
DataLoadMode="Asynchronous" Margin="350,100,0,0" SelectionMode="Extended"
SelectionUnit="FullRow" ClipboardCopyMode="All" AlternationCount="10"
AlternateRowBackground="Coral" Visibility="Visible" Canvas.Left="-530" Canvas.Top="-31"
Width="320">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding jackB}" Header="jack no." />
<telerik:GridViewDataColumn DataMemberBinding="{Binding groupB}" Header="group: fiberid" />
</telerik:RadGridView.Columns>
</telerik:RadGridView >
</Grid>
</telerik:RadPane>
<telerik:RadPane Header="Existing Patches" CanUserClose="False">
<Grid>
<Button Name="btnDeletePatch" Content="Delete Patch" Height="25" Width="75" Margin="5,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnDeletePatch_Click" />
<telerik:RadDropDownButton Content="Display Option..." Height="25" Width="100" Margin="90,5,0,0" Visibility="Visible" Canvas.Left="211" Canvas.Top="0" HorizontalAlignment="Left" VerticalAlignment="Top">
<telerik:RadDropDownButton.DropDownContent>
<telerik:RadContextMenu>
<telerik:RadMenuItem Header="Group: FiberID or Label" />
<telerik:RadMenuItem Header="Device (Jack #)" />
<telerik:RadMenuItem Header=" Room Rack Device (Jack #)" />
</telerik:RadContextMenu>
</telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>
<Button Name="btnUpdate" Content="Update" Height="25" Width="65" Margin="200,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnUpdate_Click" />
<Button Name="btnCancel" Content="Cancel" Height="25" Width="65" Margin="270,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnCancel_Click" />
<Button Name="btnPrint" Content="Print" Height="25" Width="65" Margin="340,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnPrint_Click" />
<Button Name="btnExportData" Content="Export..." Height="25" Width="65" Margin="0,5,5,0" HorizontalAlignment="Right" VerticalAlignment="Top" Click="btnExportData_Click" Visibility="Visible" Canvas.Left="-505" Canvas.Top="-35" />
<telerik:RadGridView x:Name="radGridViewPatch" AutoGenerateColumns="False" Sorting ="radGridView_Sorting"
Filtered="radGridView_FilteredPatch" ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
DataLoadMode="Asynchronous" Margin="0,50,0,0" SelectionMode="Extended"
SelectionUnit="FullRow" ClipboardCopyMode="All" AlternationCount="10"
AlternateRowBackground="Coral" Visibility="Visible" Canvas.Left="-530" Canvas.Top="-31"
Width="745">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding displayA}" Header="group: fiber / label" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding patchtype}" Header="patch type" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding label}" Header="label"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding length}" Header="length"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding lengthunits}" Header="length units"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding displayB}" Header="group: fiber / label"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView >
</Grid>
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
</telerik:RadDocking>
</Grid>
</UserControl>
0
Hi Greg,
Could you please check if the Target framework of your application is Client Profile. If that is the case, may I ask you to choose the full .Net framework instead of Client Profile.
The problem with Client Profile is fixed in our latest Internal Build.
All the best,
Milan
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

Greg
Top achievements
Rank 2
answered on 21 Apr 2011, 05:10 PM
Hi Milan,
I am running .Net 3.5 framework not the 3.5 Client Profile. I tried installing the latest hotfix it had no impact. I uninstalled and reinstalled using the 419 build and it had no impact. I don't understand why this won't run. I've examined all of the references and they are all the same version number. I have a sample application that uses the same controls and it runs fine. However, my application throws an error. These are the differences that I can see between the two programs:
1) Mine is a UserControl the sample is a Window
<UserControl
x:Class="OSPInSight.Common.Forms.PatchEditor"
vs
<Window x:Class="TelerikTesting.MainWindow"
2) The sample application contains an app.config file and my solution does not:
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
3) The sample application has an output type of Windows Application mine is a Class Library.
I also tried including a reference to Telerik in all the projects that called or otherwise accessed the form containing the Telerik controls. Even though these projects do not specifically use the controls. The error seems to be specific to not being able to find the Telerik.Windows.Controls.Navigation.RadContextMenu.
Greg
I am running .Net 3.5 framework not the 3.5 Client Profile. I tried installing the latest hotfix it had no impact. I uninstalled and reinstalled using the 419 build and it had no impact. I don't understand why this won't run. I've examined all of the references and they are all the same version number. I have a sample application that uses the same controls and it runs fine. However, my application throws an error. These are the differences that I can see between the two programs:
1) Mine is a UserControl the sample is a Window
<UserControl
x:Class="OSPInSight.Common.Forms.PatchEditor"
vs
<Window x:Class="TelerikTesting.MainWindow"
2) The sample application contains an app.config file and my solution does not:
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
3) The sample application has an output type of Windows Application mine is a Class Library.
I also tried including a reference to Telerik in all the projects that called or otherwise accessed the form containing the Telerik controls. Even though these projects do not specifically use the controls. The error seems to be specific to not being able to find the Telerik.Windows.Controls.Navigation.RadContextMenu.
Greg
0
Hello Greg,
I may suggest you to open a support ticket . This will allow you to attach a zip with the project . We will be glad to have a look at it and find out what went wrong. I believe this is the faster and easier way to have the issue resolved.
Sincerely,
Pavel Pavlov
the Telerik team
I may suggest you to open a support ticket . This will allow you to attach a zip with the project . We will be glad to have a look at it and find out what went wrong. I believe this is the faster and easier way to have the issue resolved.
Sincerely,
Pavel Pavlov
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