Hi,
I've created a report using Report Builder 3.0 against a SQL Server 2008 R2 database. The report runs fine and the output is as expected. I saved the report as a RDL file. I then opened Visual Studio 2010 and created a simple Windows application that has a ReportViewer control (10.0.0...). I copied the report to my solution directory and had the report load into the view using the following code:
this.MainReportViewer.ProcessingMode = ProcessingMode.Local;
this.MainReportViewer.LocalReport.LoadReportDefinition( new StreamReader( "RubbishReport.rdl" ) );
this.MainReportViewer.LocalReport.ReportPath = "RubbishReport.rdl";
this.MainReportViewer.RefreshReport();
When I run the application the report viewer displays a message similar to:
An error occurred during local processing. The report definition is not valid. The Report definition has an invalid target namespace. 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition' which cannot be upgraded.
Can someone shed some light on this?
Kind Regards
Michael