Hi,
My Visual Studio Application Upgraded from Visual Studio 2012 to Visual Studio 2022. All my existing reports working in the development machine as well as Live server. if i create a new RDLC reports it works in the development machine but shows the below error in the Live Server.
The report definition is not valid or supported by this version of Reporting Services.
This could be the result of publishing a report definition of a later version of Reporting Services,
or that the report definition contains XML that is not well-formed or the XML is not valid based on the
Report Definition schema. Details: The report definition has an invalid target namespace
'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' which cannot be upgraded.
The above error shows in this line.
rep.SetParameters(new ReportParameter[] { p });
What I have tried:
I did Installed Visual studio 2022 then download and installed 2022 RDLC report from visual studio 2022 in the Live server.
Copied the below same version of Reportviewer DLL's from the Development machine Application Bin folder into Live server Application Bin folder
Microsoft.ReportViewer.Common
version: 15.0.1509.0
Microsoft.ReportViewer.ProcessingObjectModel
version: 15.0.1509.0
Microsoft.SqlServer.Types
version: 2016.140.100.187