C# – Report Viewer Issue(.rdlc) in VS 2010

asp.net-3.5cnetrdlcvisual studio 2010

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.

Best Answer

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

Related Topic