命名空间“Microsoft”中不存在类型或命名空间名“Reporting”(是否缺少程序集引用?)

IDE升级到VS2017之后,出现了如题所示的报错,重新引用DLL的方法如下:

1、右键引用,选择添加引用。

2、左侧选择浏览,下面点击浏览按钮。

3、分别添加Microsoft.ReportViewer.Common.DLL及Microsoft.ReportViewer.WinForms.DLL两个库文件,路径如下:

C:WindowsassemblyGAC_MSILMicrosoft.ReportViewer.Common12.0.0.0__89845dcd8080cc91

C:WindowsassemblyGAC_MSILMicrosoft.ReportViewer.WinForms12.0.0.0__89845dcd8080cc91

原文地址:https://www.cnblogs.com/atomy/p/7618384.html