當我從Visual Studio 2015社區升級到Visual Studio 2017社區時,在我的reportviewer報告中出現以下錯誤。DefinitionInvalidException:報告''的定義無效
Microsoft.Reporting.WinForms.LocalProcessingException:'本地報告處理期間發生錯誤。'
內部異常 DefinitionInvalidException:報告「'的定義無效。
當我從Visual Studio 2015社區升級到Visual Studio 2017社區時,在我的reportviewer報告中出現以下錯誤。DefinitionInvalidException:報告''的定義無效
Microsoft.Reporting.WinForms.LocalProcessingException:'本地報告處理期間發生錯誤。'
內部異常 DefinitionInvalidException:報告「'的定義無效。
請確認您已安裝以下nuget軟件包。
對於的WinForms: https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.Winforms/140.340.80
對於ASP.NET: https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.WebForms/140.340.80/
您可能還需要安裝報表設計器:
如果它不能正常工作,請點擊當您收到異常並在Web頁面上查看錯誤詳細信息時,請在Visual Studio調試器中「繼續」。
未安裝正確的Winforms nuget軟件包,謝謝! –
什麼是完整的例外?我懷疑有些NuGet包丟失了,請檢查它們。 – sachin
+ \t \t InnerException \t {「此報告的定義無效或不受此版本Reporting Services支持。報告定義可能是使用更高版本的Reporting Services創建的,或者包含格式不正確的內容或基於Reporting Services模式無效詳細信息:報告定義具有無法升級的無效目標命名空間「http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition」。「} \t System.Exception {Microsoft.ReportingServices.ReportProcessing.ReportProcessingException} –