Tôi có dự án AspNet MVC trong Visual Studio 2017 đã được phát triển trước đó trong Visual Studio 2015. Dự án này chứa nhiều tệp rdlc. một trong số chúng. Bây giờ, khi tôi cố gắng để tải về pdf từ rdlc sửa tôi nhận được lỗi này:Báo cáo RDLC ngừng hoạt động sau khi thay đổi Visual Studio 2015 sang Visual Studio 2017
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.
Các rdlc sửa thay đổi namespace từ http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition để http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition
Dự án đang chạy với khuôn khổ ròng 4.6.2 và nó đã được cài đặt Microsoft.ReportViewer.Runtime.Common.12.0.2402.15 và Microsoft.ReportViewer.Runtime.WebForms.12.0.2402.15 gói NuGet
Tuyệt vời! Nó ổn với tôi. –
https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.WebForms/ Cài đặt-Gói Microsoft.ReportingServices.ReportViewerControl.WebForms -Version 140.802.134 –
Fidel Cảm ơn bạn đã đặt câu hỏi này rõ ràng và cảm ơn bạn rất nhiều Lilliam cho câu trả lời. Đó là 3 ngày tôi đã tìm kiếm một giải pháp cho việc này. Đối với những người đang tìm kiếm giải pháp cho ứng dụng WPF, bạn cần cài đặt gói này: ** Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80 ** – Ali