When I try to open the form holding the Report Viewer control, it displays this message:
An error occurred during local report processing.
The definition is not valid. Details: The report definition has an invalid target namespace
"http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition" which cannot be upgraded.
The header of the rdlc file is:
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
The Reference set seems correct to me:
Microsoft.ReportViewer.WinForms
Runtime version: v2.0.50727
Version: 10.0.0.0
Target framework is: .NET Framework 4.5
Perhaps because this is an upgraded application, it still has included as Prerequisites:
Microsoft Visual Studio 2008 Report Viewer
I can find a support article stating that you can modify the schema version to, say, 2008, but that brings up a lot of compile errors.
So, how to resolve this?
Microsoft.ReportingServices.ReportViewerControl.Winforms
package in VS 2019. – Reza Aghaei