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

Error using Report Viewer in ChildWindow

2 Answers 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Donald Hamm
Top achievements
Rank 1
Donald Hamm asked on 23 Mar 2010, 03:24 PM
Below is the XAML I have for the viewer

<controls:ChildWindow x:Class="AssetManagement.ModuleImport.Views.ImportStatusViewer" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
           xmlns:telerik="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight"      
           xmlns:telerikNav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
           xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
           xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls" 
           xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"                        
           Width="600" Height="700"   
           Title="Import Status Viewer">  
    <Grid x:Name="LayoutRoot" Margin="2">  
        <telerik:ReportViewer x:Name="ReportViewer1"   
                              Width="600" ReportServiceUri = "../ReportService.svc" 
                              Report = "DuffPhelps.Reports.Import.ImportStatusForBatch, DuffPhelps.Reports.Import, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">  
        </telerik:ReportViewer> 
    </Grid> 
</controls:ChildWindow> 


When I try to 'show' the viewer, I get the following:
An unhandled exception ('Unhandled Error in Silverlight Application
 Code: 4004
Category: ManagedRuntimeError
Message: System.Windows.Markup.XamlParseException:
System.Windows.Markup.XamlParseException:

Possible Debuggers.....

If I put this in a 'UserControl', I don't get the error -- but, I want to use the child window for obvious reasons.
I'm using Silverlight 3, Q3 Reporting, and Q1 2010 SL 3 libraries.  I've even removed the url and report and it still give the same error...

Thanks! 

-Don

2 Answers, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 24 Mar 2010, 02:39 PM
The Silverlight viewer uses controls from RadControls for Silverlight, so the respective versions should always match. In your case you should upgrade Telerik Reporting to Q1 2010 as well. Having this article ("RadComboBox.SelectionBoxItemTemplate is read only" error in Silverlight viewer) in mind, it is recommended to download the latest internal builds of both product suites.

Cheers
0
Jon
Top achievements
Rank 1
answered on 17 Apr 2010, 02:11 AM
Hi..
I'm having the same issue... also get an error when I try and set the theme in the childwindow...
How did you resolve it?
thanks
Tags
General Discussions
Asked by
Donald Hamm
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Jon
Top achievements
Rank 1
Share this question
or