IDE升级到VS2017以后,出现了如题所示的报错,从新引用DLL的方法以下:orm
一、右键引用,选择添加引用。blog
二、左侧选择浏览,下面点击浏览按钮。引用
三、分别添加Microsoft.ReportViewer.Common.DLL及Microsoft.ReportViewer.WinForms.DLL两个库文件,路径以下:方法
C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.Common\12.0.0.0__89845dcd8080cc91im
C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms\12.0.0.0__89845dcd8080cc91img