Jon C Crawley
Jon C Crawley

Reputation: 31

Issues With namespace reference. C# 'Reporting'

I am doing some maintenance on an application that was developed by a different developer that i can no longer contact.

The project was build in Visual Studios 2008 and I only have 2010 now. After doing the “upgrade wizard”. I get two warnings and a ton of errors that I am not sure how to solve.

The referenced component 'Microsoft.ReportViewer.WinForms' could not be found. The referenced component 'Microsoft.ReportViewer.Common' could not be found.

If someone could point me in the right direction that would be great. I have had a rough time finding a solution on goggle.

Note: This is a stand-alone application not a web app.

Upvotes: 2

Views: 2797

Answers (2)

user3284126
user3284126

Reputation: 55

I have same problem here, but i fixed my problem by install MICROSOFT® REPORT VIEWER RUNTIME from Package Manager Consol.

From visual studio choose Tools -> Libraty Package Console -> Package Manager Console. Then Type: PM >Install-Package Microsoft.ReportViewer. and my problem is gone

Upvotes: 0

Aghilas Yakoub
Aghilas Yakoub

Reputation: 28970

Path of reference has changed, search assembly in .Net version framework, and add reference

Add reference and browse to this directory : %programfiles%\Microsoft Visual Studio 10.0\ReportViewer\

Upvotes: 1

Related Questions