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

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

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

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

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

C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.Common\12.0.0.0__89845dcd8080cc91

C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms\12.0.0.0__89845dcd8080cc91

posted @ 2017-10-02 01:54  缥缈的尘埃  阅读(8165)  评论(0编辑  收藏  举报