DefinitionInvalidException: The definition of the report '' is invalid

末鹿安然 提交于 2020-04-08 07:07:12

问题


I get the following error in my reportviewer report when I upgraded from Visual Studio 2015 Community to Visual Studio 2017 Community.

Microsoft.Reporting.WinForms.LocalProcessingException: 'An error occurred during local report processing.'

Inner Exception DefinitionInvalidException: The definition of the report '' is invalid.


回答1:


Please verify that you have installed the following nuget packages.

For Winforms : https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.Winforms/140.340.80

For ASP.NET : https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.WebForms/140.340.80/

You might also need to install the Report Designer :

https://marketplace.visualstudio.com/items?itemName=SqlReportingServices.MicrosoftRdlcReportDesignerforVisualStudio-18001

If it does not work, click "continue" in Visual Studio debugger when you get the exception and go see on the Web page what are the error details.




回答2:


this error occurred for not installing correct packages. I have solved this problem by installing latest reportviewer control from this link

https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.WebForms/150.900.148



回答3:


For me, it was installed but I forgot this:

Hope it helps.



来源:https://stackoverflow.com/questions/43869364/definitioninvalidexception-the-definition-of-the-report-is-invalid

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!