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

Cannot get report to view in Report Viewer Silverlight

1 Answer 133 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sam Cartner
Top achievements
Rank 1
Sam Cartner asked on 17 Mar 2010, 12:07 PM
HI,

Im new to the Report Viewer control but very interested in implementing into our Silverlight Application. I have followed the Video tutorial and looked through the example project on how to create and view a simple report, however im getting the following error:

'Could not load type 'TenantsDetails' from Assembly 'Telerik.Reporting.Service' version=4.0.10.310, Culture = Neutral, PublicKeyToken=a9d798dfcc261be'

I have scoured your forums but there is no clear solution. I have made sure im using all the correct refereneces, have the latest versions of Reporting and RadControls and i cannot for the life of me figure out whats going wrong.

Here is my code to my report viewer

<controls:ChildWindow x:Class="ColonySL.ReportViewer" 
           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="1024" Height="700" 
           Title="ReportViewer">  
    <Canvas Name="Main">  
        <telerik:ReportViewer Grid.Row="1" x:Name="ReportViewer1"   
                                  Width="1008" 
                                  Height="660" 
                                  ReportServiceUri="../ReportService.svc" 
                                  Report="TenantsDetails"/>  
 
    </Canvas> 
</controls:ChildWindow> 

and attached is a snap shot of how my project looks.

I would be grateful if you could get back to me asap as we are very interested in getting this working with our project and would like to purchase if we can get this working.

Thanks,

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Mar 2010, 03:35 PM
Hi Sam Cartner,

If you review carefully the video tutorial and the Embedding the Silverlight Viewer help article once again, you would notice that you should set the Report property to the assembly qualified name of the report e.g.:

Report="Telerik.Reporting.Examples.CSharp.BarcodesReport, CSharp.ReportLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"

All the best,
Steve
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.
Tags
General Discussions
Asked by
Sam Cartner
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or