After updating our ssrs 2012 environment to visual studio 2015 I sometimes get an error when deploying a report.
Error rsProcessingError : The definition of this report is not valid or supported by this version of Reporting Services. The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas. Details: The report definition has an invalid target namespace ‘http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition’ which cannot be upgraded.
These reports all have 2 things in common.
- There is a ReportParametersLayout tag in the code
- The Report tag has the old formatting.
<Report xmlns=”http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition” xmlns:rd=”http://schemas.microsoft.com/SQLServer/reporting/reportdesigner”>
<Report xmlns:rd=”http://schemas.microsoft.com/SQLServer/reporting/reportdesigner” xmlns:cl=”http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition” xmlns=”http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition”>
What worked for me was removing the ReportParametersLayout node completely and changing the report tag to the 2010 formatting.
OR (and that is probably the preferred one), change one thing in the report and deploy again. 🙂