I just updated to version 2012.2.607.40 today and now when I switch to design view in WPF I get the following exception:
Cannot locate resource 'themes/genericmetrotouch.xaml'.
at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
at System.IO.Packaging.PackWebResponse.GetResponseStream()
at System.IO.Packaging.PackWebResponse.get_ContentType()
at MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse response)
at MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType)
at System.Windows.ResourceDictionary.set_Source(Uri value)
at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<Create_BamlProperty_ResourceDictionary_Source>b__1c4(Object target, Object value)
at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
Cannot locate resource 'themes/genericmetrotouch.xaml'.
at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
at System.IO.Packaging.PackWebResponse.GetResponseStream()
at System.IO.Packaging.PackWebResponse.get_ContentType()
at MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse response)
at MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType)
at System.Windows.ResourceDictionary.set_Source(Uri value)
at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<Create_BamlProperty_ResourceDictionary_Source>b__1c4(Object target, Object value)
at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
7 Answers, 1 is accepted
0
Hello Kevin,
Can you send us your xaml or point the Telerik WPF control which cause the design error?
Greetings,
Yordanka
the Telerik team
Can you send us your xaml or point the Telerik WPF control which cause the design error?
Greetings,
Yordanka
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
![](/forums/images/avatarimages/default.gif)
Kevin
Top achievements
Rank 1
answered on 26 Jun 2012, 11:32 AM
Hello Yordanka,
The exception was raised by both the RadColorPicker and the RadTreeView in the following XAML. If I commented one out, the other would throw the exception.
The exception was raised by both the RadColorPicker and the RadTreeView in the following XAML. If I commented one out, the other would throw the exception.
<
Window
x:Class
=
"Steema.TeeChart.WPF.Editors.ChartEditor"
xmlns:tChartWpf
=
"clr-namespace:Steema.TeeChart.WPF"
Title
=
"TeeChart Editor"
Height
=
"420"
Width
=
"525"
WindowStartupLocation
=
"CenterOwner"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Closed
=
"chartEditor_Closed"
>
<
DockPanel
>
<
StackPanel
DockPanel.Dock
=
"Bottom"
Orientation
=
"Horizontal"
>
<
Button
Content
=
"Close"
Margin
=
"25,5,10,5"
Padding
=
"10,2"
Click
=
"CloseWindow_Click"
/>
</
StackPanel
>
<
TabControl
Name
=
"tabControl1"
SelectionChanged
=
"tabControl1_SelectedIndexChanged"
>
<
TabItem
Header
=
"Chart"
>
<
TabControl
Name
=
"tabControl2"
>
<
TabItem
Header
=
"Series"
Name
=
"tabSeries"
>
<
DockPanel
>
<
StackPanel
DockPanel.Dock
=
"Right"
Orientation
=
"Vertical"
>
<
TextBlock
TextAlignment
=
"Center"
Margin
=
"0,10,0,0"
>Move Series</
TextBlock
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"5,3,5,8"
>
<
Button
Name
=
"bSeriesUp"
Content
=
"Up"
Margin
=
"3"
Click
=
"bSeriesMove_Click"
Tag
=
"up"
/>
<
Button
Name
=
"bSeriesDown"
Content
=
"Down"
Margin
=
"3"
Click
=
"bSeriesMove_Click"
Tag
=
"down"
/>
</
StackPanel
>
<
Button
Content
=
"Add . . ."
Margin
=
"4"
Name
=
"buttonAddSeries"
Click
=
"buttonAddSeries_Click"
/>
<
Button
Content
=
"Delete . . ."
Margin
=
"4"
Name
=
"buttonDeleteSeries"
Click
=
"buttonDeleteSeries_Click"
/>
<
Button
Content
=
"Title . . ."
Margin
=
"4"
Name
=
"buttonTitleSeries"
Click
=
"buttonTitleSeries_Click"
/>
<
Button
Content
=
"Clone"
Margin
=
"4"
Name
=
"buttonCloneSeries"
Click
=
"buttonCloneSeries_Click"
/>
<
Button
Content
=
"Change . . ."
Margin
=
"4"
Name
=
"buttonChangeSeries"
Click
=
"buttonChangeSeries_Click"
/>
</
StackPanel
>
<
StackPanel
DockPanel.Dock
=
"Top"
Orientation
=
"Horizontal"
>
<
Button
Name
=
"BAddGroup"
Content
=
" + "
Margin
=
"2"
/>
<
Button
Name
=
"BDeleteGroup"
Content
=
" - "
Margin
=
"2"
/>
<
Button
Name
=
"BRenameGroup"
Content
=
"Rename"
Margin
=
"2"
/>
</
StackPanel
>
<
telerik:RadTreeView
DockPanel.Dock
=
"Left"
Name
=
"LBGroups"
ItemsOptionListType
=
"CheckList"
IsOptionElementsEnabled
=
"True"
IsTriStateMode
=
"True"
SelectionMode
=
"Single"
>
<
telerik:RadTreeViewItem
Header
=
"Item 1"
/>
</
telerik:RadTreeView
>
<
tChartWpf:ChartListBox
x:Name
=
"chartListBox1"
/>
</
DockPanel
>
</
TabItem
>
<
TabItem
Header
=
"Panel"
Name
=
"tabPanel"
/>
<
TabItem
Header
=
"Axes"
Name
=
"tabAxes"
/>
<
TabItem
Header
=
"General"
Name
=
"tabGeneral"
/>
<
TabItem
Header
=
"Titles"
Name
=
"tabTitles"
/>
<
TabItem
Header
=
"Walls"
Name
=
"tabWalls"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
CheckBox
Content
=
"Visible Walls"
Grid.Row
=
"0"
Margin
=
"10"
Name
=
"checkBox2"
/>
<
TabControl
Grid.Row
=
"1"
Name
=
"tabControl3"
>
<
TabItem
Header
=
"Left"
Name
=
"tabPage3"
/>
<
TabItem
Header
=
"Right"
Name
=
"tabPage9"
/>
<
TabItem
Header
=
"Back"
Name
=
"tabPage10"
/>
<
TabItem
Header
=
"Bottom"
Name
=
"tabPage11"
/>
</
TabControl
>
</
Grid
>
</
TabItem
>
<
TabItem
Header
=
"Paging"
Name
=
"tabPaging"
/>
<
TabItem
Header
=
"Legend"
Name
=
"tabLegend"
/>
<
TabItem
Header
=
"3D"
Name
=
"tabAspect"
/>
</
TabControl
>
</
TabItem
>
<
TabItem
Header
=
"Series"
Name
=
"tabPageSeries"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Grid
Grid.Row
=
"0"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"10*"
/>
<
ColumnDefinition
Width
=
"1*"
/>
</
Grid.ColumnDefinitions
>
<
StackPanel
Grid.Column
=
"0"
Orientation
=
"Horizontal"
>
<
ComboBox
Name
=
"CBSeries"
Margin
=
"10,5,5,5"
SelectionChanged
=
"CBSeries_SelectionChanged"
/>
<
Image
Name
=
"pictureBox2"
Margin
=
"3"
Width
=
"24"
Height
=
"24"
/>
<
TextBlock
Name
=
"label4"
Margin
=
"3"
/>
</
StackPanel
>
<
telerik:RadColorPicker
Grid.Column
=
"1"
Height
=
"24"
Width
=
"24"
SelectedColor
=
"Red"
NoColorVisibility
=
"Collapsed"
Name
=
"label7"
/>
</
Grid
>
</
Grid
>
</
TabItem
>
<
TabItem
Header
=
"Data"
Name
=
"tabData"
>
<
telerik:RadGridView
Name
=
"dataGrid1"
ShowInsertRow
=
"True"
/>
</
TabItem
>
<
TabItem
Header
=
"Print"
Name
=
"tabPrint"
/>
<
TabItem
Header
=
"Export"
Name
=
"tabExport"
/>
<
TabItem
Header
=
"Tools"
Name
=
"tabTools"
/>
<
TabItem
Header
=
"Animations"
Visibility
=
"Hidden"
Name
=
"tabAnimations"
/>
<
TabItem
Header
=
"Themes"
Visibility
=
"Hidden"
Name
=
"tabThemes"
/>
</
TabControl
>
</
DockPanel
>
</
Window
>
0
Hi Kevin,
Unfortunately I wasn't able to reproduce this issue locally. I've used your xaml sample to create a sample WPF application and I added references to our 2012.2.607.40 assemblies for WPF. Can you please make sure that you're indeed using the Q2 2012 version of our controls? Also please have a look at the solution and let me know if it works for you or if I'm missing something.
Thank you in advance for your cooperation on the matter.
Regards,
Tina Stancheva
the Telerik team
Unfortunately I wasn't able to reproduce this issue locally. I've used your xaml sample to create a sample WPF application and I added references to our 2012.2.607.40 assemblies for WPF. Can you please make sure that you're indeed using the Q2 2012 version of our controls? Also please have a look at the solution and let me know if it works for you or if I'm missing something.
Thank you in advance for your cooperation on the matter.
Regards,
Tina Stancheva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
![](/forums/images/avatarimages/default.gif)
Kevin
Top achievements
Rank 1
answered on 29 Jun 2012, 02:46 PM
Thank you Tina, I appreciate the quick response.
When I originally ran my code and encountered the error, I had just run through the upgrade wizard and let it upgrade the entire Solution. I did not actually verify that the dlls it referenced were the exact version, but immediately after upgrading I started getting the exception, so it appeared to be caused by the upgrade. When I upgraded via the wizard back to the previous version the errors went away. When I get a chance I will test your provided code and verify the referenced assemblies.
When I originally ran my code and encountered the error, I had just run through the upgrade wizard and let it upgrade the entire Solution. I did not actually verify that the dlls it referenced were the exact version, but immediately after upgrading I started getting the exception, so it appeared to be caused by the upgrade. When I upgraded via the wizard back to the previous version the errors went away. When I get a chance I will test your provided code and verify the referenced assemblies.
0
![](/forums/images/avatarimages/default.gif)
William
Top achievements
Rank 1
answered on 07 Jul 2012, 06:52 PM
I am having the same problem after a Control Panel upgrade to 2012.2 from 2012.1. I'm not clear the source of this error either.
0
![](/forums/images/avatarimages/default.gif)
Robert Putzier
Top achievements
Rank 1
answered on 02 Aug 2012, 05:37 AM
Hi,
have same problem. Upgrade to 2012.2.
have same problem. Upgrade to 2012.2.
0
Hello guys,
Can you try and upgrade to the latest official version of our controls - Q2 2012 SP1 - 2012.2.0724. Please let me know if with that version you still get the error.
Kind regards,
Tina Stancheva
the Telerik team
Can you try and upgrade to the latest official version of our controls - Q2 2012 SP1 - 2012.2.0724. Please let me know if with that version you still get the error.
Kind regards,
Tina Stancheva
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.