Hi,
I'm running VS 2015 in W10 (x64) with Telerik Reporting Q1 2015 SP1.
I'm developing a WPF application.
I'm getting the following XAML parse exception when attempting to show a Window containing a ReportViewer.
I'm developing a WPF application.
I'm getting the following XAML parse exception when attempting to show a Window containing a ReportViewer.
System.Windows.Markup.XamlParseException
Message: {"'Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception. Line number '55' and line position '12'."}
BaseUri: {pack://application:,,,/Assets/Themes/Windows8/Telerik.ReportViewer.Wpf.xaml}
BaseUri: {pack://application:,,,/Assets/Themes/Windows8/Telerik.ReportViewer.Wpf.xaml}
InnerException:
Message: {"Cannot find resource named 'Telerik.Windows.Controls.RadProgressBar'. Resource names are case sensitive."}
StackTrace:
Message: {"Cannot find resource named 'Telerik.Windows.Controls.RadProgressBar'. Resource names are case sensitive."}
StackTrace:
at System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
at System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
at System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
The Click event handler for my "Generate Report" button is throwing the exception:
private void OnGenerateReportClick(object sender, RoutedEventArgs e){ EnhListReportViewerWindow elrvw = new EnhListReportViewerWindow() elrvw.Show();}The exception is thrown on "elrvw.Show();".
My <Application.Resources> in App.xaml looks like this:
01.<runtime>02. <assemblyBinding>03. <dependentAssembly>04. <assemblyIdentity name="Telerik.Windows.Controls" publicKeyToken="5803cfa389c90ce7"/>05. <bindingRedirect oldVersion="0.0.0.0-2015.1.401.45" newVersion="2015.1.401.45"/>06. </dependentAssembly>07. <dependentAssembly>08. <assemblyIdentity name="Telerik.Windows.Controls.Input" publicKeyToken="5803cfa389c90ce7"/>09. <bindingRedirect oldVersion="0.0.0.0-2015.1.401.45" newVersion="2015.1.401.45"/>10. </dependentAssembly>11. <dependentAssembly>12. <assemblyIdentity name="Telerik.Windows.Controls.Navigation" publicKeyToken="5803cfa389c90ce7" />13. <bindingRedirect oldVersion="0.0.0.0-2015.1.401.45" newVersion="2015.1.401.45" />14. </dependentAssembly>15. <dependentAssembly>16. <assemblyIdentity name="Telerik.Windows.Data" publicKeyToken="5803cfa389c90ce7"/>17. <bindingRedirect oldVersion="0.0.0.0-2015.1.401.45" newVersion="2015.1.401.45"/>18. </dependentAssembly>19. </assemblyBinding>20.</runtime>
The "Assets" folder is at the root of my project.
I have these Telerik assemblies (v4.0.30319) in my WPF project:
Telerik.Reporting (Q1 2015 SP1, 9.0.15.324)Telerik.Reporting.XpsRendering (Q1 2015 SP1, 9.0.15.324)Telerik.ReportViewer.Wpf (Q1 2015 SP1, 9.0.15.324)Telerik.Windows.Controls (2015.1.401.45)Telerik.Windows.Controls.Docking (2015.1.401.45)Telerik.Windows.Controls.Input (2015.1.401.45)Telerik.Windows.Controls.Navigation (2015.1.401.45)Telerik.Windows.Data (2015.1.401.45)My report library project is called "ConsoleReportLibrary". It has one report at the root: "EnhancementList.cs". ConsoleReportLibrary references Telerik.Reporting (9.0.15.324).
In the WPF project, my ReportViewer is declared in a Window like so:
<tr:ReportViewer Name="ReportViewer1"> <tr:ReportViewer.ReportSource> <telerikReporting:TypeReportSource TypeName="ConsoleReportLibrary.EnhancementList, ConsoleReportLibrary"/> </tr:ReportViewer.ReportSource></tr:ReportViewer>I have assembly redirects set up in App.config like so:
01.<runtime>02. <assemblyBinding>03. <dependentAssembly>04. <assemblyIdentity name="Telerik.Windows.Controls" publicKeyToken="5803cfa389c90ce7"/>05. <bindingRedirect oldVersion="0.0.0.0-2015.1.401.45" newVersion="2015.1.401.45"/>06. </dependentAssembly>07. <dependentAssembly>08. <assemblyIdentity name="Telerik.Windows.Controls.Input" publicKeyToken="5803cfa389c90ce7"/>09. <bindingRedirect oldVersion="0.0.0.0-2015.1.401.45" newVersion="2015.1.401.45"/>10. </dependentAssembly>11. <dependentAssembly>12. <assemblyIdentity name="Telerik.Windows.Controls.Navigation" publicKeyToken="5803cfa389c90ce7" />13. <bindingRedirect oldVersion="0.0.0.0-2015.1.401.45" newVersion="2015.1.401.45" />14. </dependentAssembly>15. <dependentAssembly>16. <assemblyIdentity name="Telerik.Windows.Data" publicKeyToken="5803cfa389c90ce7"/>17. <bindingRedirect oldVersion="0.0.0.0-2015.1.401.45" newVersion="2015.1.401.45"/>18. </dependentAssembly>19. </assemblyBinding>20.</runtime>The ReportViewer shows up in the designer with the Windows 8 theme, but something is going wrong at runtime. Guidance?
Thanks,
ADJ
ADJ