2
votes

I am creating a new rdlc report file in VS 2010 in a web application. This project already consists some existing rdlc files which were build in VS 2008. When I run the project and view the report I get the following error:

An error occurred during local report processing. The definition of the report 'Main Report' is invalid. The report definition is not valid. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition' which cannot be upgraded.

2

2 Answers

3
votes

I had the same error and after checking the following link :

https://cmatskas.com/resolving-rdlc-error-the-report-definition-is-not-valid-in-visual-studio-2012/

I found out that the default referenced Microsoft.ReportViewer.WebForms.dll version was for VS 2008 which is Version : 9.0.0 so i searched for the dll and i found it in :

c:\Program Files (x86)\Microsoft Visual Studio 12.0\ReportViewer\Microsoft.ReportViewer.WebForms.dll

after referencing it , it worked successfully

0
votes

Try the following: open your rdlc file as xml. replace http://schemas.microsoft.com/sqlserver/reporting/2008/01/ to http://schemas.microsoft.com/sqlserver/reporting/2010/01/ in both xmlns:cl and xmlns