Hi,
I'm trying to setup reportViewer for my silverlight project. I'm using Telerik Reporting Trial version so far. I built a simple report which just gives me the correct data preview as expected. Now I'm trying to set up that report for my silverlight application so that I might see it in the reportviewer. for that I've also implemented ReportService configurations.
here
Now I expect this to display me the TrialReport [ which shows me the correct data preview at least]. But when I run this solution i only get this error being displayed in the ReportViewer control.
There is no available report type with assembly qualified name 'TelerikTrialReportSample.TrialReport, TelerikTrialReportSample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load file or assembly 'TelerikTrialReportSample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Although, TelerikTrialReportSample lies with the same solution and TrialReport already has been given a qualified name. I've verified assembly version number as well. And still getting this error. Can someone guide me what did I miss or which side I should try to debug it further.
I'm trying to setup reportViewer for my silverlight project. I'm using Telerik Reporting Trial version so far. I built a simple report which just gives me the correct data preview as expected. Now I'm trying to set up that report for my silverlight application so that I might see it in the reportviewer. for that I've also implemented ReportService configurations.
here
<Grid x:Name="LayoutRoot" Background="White"> <telerik:ReportViewer ReportServiceUri="../ReportService.svc" Report="TelerikTrialReportSample.TrialReport, TelerikTrialReportSample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"> </telerik:ReportViewer> </Grid>Now I expect this to display me the TrialReport [ which shows me the correct data preview at least]. But when I run this solution i only get this error being displayed in the ReportViewer control.
There is no available report type with assembly qualified name 'TelerikTrialReportSample.TrialReport, TelerikTrialReportSample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load file or assembly 'TelerikTrialReportSample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Although, TelerikTrialReportSample lies with the same solution and TrialReport already has been given a qualified name. I've verified assembly version number as well. And still getting this error. Can someone guide me what did I miss or which side I should try to debug it further.
7 Answers, 1 is accepted
0
SHEIKH
Top achievements
Rank 1
answered on 06 Oct 2010, 12:54 PM
got it!
0
Igor
Top achievements
Rank 1
answered on 11 Oct 2010, 06:02 AM
Hi,
I am experiencing the same propblem.
My report located in the class library project.
Any help would be appreciated.
Thanks
I am experiencing the same propblem.
My report located in the class library project.
Any help would be appreciated.
Thanks
0
Hello Igor,
If you've received the same error as SHEIKH - it means you have not added referenced to the class library in your web project hosting the Silverlight project.
Greetings,
Steve
the Telerik team
If you've received the same error as SHEIKH - it means you have not added referenced to the class library in your web project hosting the Silverlight project.
Greetings,
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
0
SHEIKH
Top achievements
Rank 1
answered on 11 Oct 2010, 12:35 PM
I second the admin. I missed out my report lib reference to my website.
0
Igor
Top achievements
Rank 1
answered on 11 Oct 2010, 11:05 PM
Hi,
I fixed the problem.
The problem was that the assembly qualified name was not specified correctly.
I got it by using:
I fixed the problem.
The problem was that the assembly qualified name was not specified correctly.
I got it by using:
Type
type = typeof(MyClassName);
string assemblyName = type.AssemblyQualifiedName;
reportViewer.Report = assemblyName;
Thanks
0
dianne
Top achievements
Rank 1
answered on 29 Mar 2011, 01:43 PM
Hi Igor,
Where will I put the code you used in the program?
Where will I put the code you used in the program?
Type
type = typeof(MyClassName);
string assemblyName = type.AssemblyQualifiedName;
reportViewer.Report = assemblyName;
0
Igor
Top achievements
Rank 1
answered on 29 Mar 2011, 10:58 PM
I used this code to get correct assembly name, this was my original problem wrong assembly name.
Type type = typeof(MyClassName);
string assemblyName = type.AssemblyQualifiedName;
I added reference of the report class to my web project. On default.aspx.cs i typed this code just to get assembly name, and then removed the reference and deleted the code.
In your silverlight project on the page that hosts silverlight report viewer control you have to type the next code:
Type type = typeof(MyClassName);
string assemblyName = type.AssemblyQualifiedName;
I added reference of the report class to my web project. On default.aspx.cs i typed this code just to get assembly name, and then removed the reference and deleted the code.
In your silverlight project on the page that hosts silverlight report viewer control you have to type the next code:
Uri
serviceAddress = new Uri(Application.Current.Host.Source, "Services/ReportService.svc");
//ReportService.svc located in the Services folder
reportViewer.ReportServiceUri =
new Uri(serviceAddress.AbsoluteUri.Replace("ClientBin/", ""));
reportViewer.Report =
"here goes the pass string obtained from the assembly name";
it should be in the next format:
"SolutionName.ReportsLibraryName.ReportName, ReportsLibraryName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"