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

前端 未结 6 1662
渐次进展
渐次进展 2021-01-01 09:06

I simply get the following error:

The type or namespace name \'Reporting\' does not exist in the namespace \'Microsoft\' (are you missing an assembly

相关标签:
6条回答
  • 2021-01-01 09:22

    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.

    0 讨论(0)
  • 2021-01-01 09:26

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

    • Report Viewer 2010 (version=10)
    • Report Viewer 2012 (version=11)
    • Report Viewer 2015

    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).

    0 讨论(0)
  • 2021-01-01 09:26

    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.

    0 讨论(0)
  • 2021-01-01 09:34

    Install ReportViewer from Nuget Package Manager

    0 讨论(0)
  • 2021-01-01 09:37

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

    0 讨论(0)
  • 2021-01-01 09:44

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

    0 讨论(0)
提交回复
热议问题