The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft'

我怕爱的太早我们不能终老 提交于 2019-11-30 16:49:21
NikolaiDante

In my case I needed to actually install Microsoft Report Viewer on the troublesome machine.

Of course, other ones are available, it can be worked out which from the Version= on the dll which one is needed. In my case I needed version 11 (the 2012 one).

I did it by right-clicking on References folder in my project and then selecting Add Reference. and then adding Assemblies > Extensions > Microsoft.ReportViewer to the references.

All these installs didn't work for me at all. What worked for me inside Visual Studio 2015 is installing the following two packages (I only needed these two) from NuGet (menu Project > Manage NuGet Packages):

  • Microsoft.ReportViewer.Common.VS2010
  • Microsoft.ReportViewer.WinForms.VS2010

The references were added to current project automatically.

Install ReportViewer from Nuget Package Manager

Just install SSDT. Then you need to remove the broken reference and re-add it from Assemblies > Extensions.

import from : C:\Program Files (x86)\Microsoft Visual Studio 11.0\ReportViewer\Microsoft.ReportViewer.WebForms.dll

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