C# 未能创建组件';ReportViewer';。错误消息如下:

C# 未能创建组件';ReportViewer';。错误消息如下:,c#,.net,winforms,C#,.net,Winforms,我无法解析此异常消息,请帮助我 未能创建组件“ReportViewer” 错误消息如下: 'System.InvalidCastException:[A]Microsoft.Reporting.WinForms.ReportViewer无法强制转换为[B]Microsoft.Reporting.WinForms.ReportViewer。 类型A源于“C:\Users\ComputerName\AppData\Local\Microsoft\VisualStudio\16.0\U 81430e9

我无法解析此异常消息,请帮助我

未能创建组件
“ReportViewer”

错误消息如下:

'System.InvalidCastException:[A]Microsoft.Reporting.WinForms.ReportViewer无法强制转换为[B]Microsoft.Reporting.WinForms.ReportViewer。
类型A源于“C:\Users\ComputerName\AppData\Local\Microsoft\VisualStudio\16.0\U 81430e9d\ProjectAssemblys\tmy4po5j01\Microsoft.ReportViewer.WinForms.dll”位置的上下文“LoadNother”中的“Microsoft.ReportViewer.WinForms,Version=15.0.0.0,Culture=neutral,PublicKeyToken=89845DCD80CC91”。
类型B源于“C:\PROGRAM FILES(X86)\Microsoft VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\Microsoft\SSAS\Microsoft.ReportViewer.WinForms.dll”位置的上下文“LoadFrom”中的“Microsoft.ReportViewer.WinForms,Version=15.0.0.0,Culture=neutral,PublicKeyToken=89845DCD80CC91”

在Microsoft.Reporting.WinForms.ReportViewerDesigner.get_ActionList()上 位于System.ComponentModel.Design.ComponentDesigner.CDDesignerCommandSet.GetCommands(字符串名称)
在System.ComponentModel.Design.DesignerCommandSet.get_ActionList()中 在System.Com上


我在更新nuget包后遇到了相同的问题。如果我构建解决方案,报告仍然有效。我无法在VisualStudio中编辑它们,然后在disigner中出现此错误,

我遇到了相同的问题,为了解决此问题,我必须安装相同版本的Reporting Services和SQL Server类型软件包。查看图像以了解详细信息


您能提供更多关于您所做工作的信息吗?