简体   繁体   English

名称空间参考的问题。 C#“报告”

[英]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. 该项目是在Visual Studios 2008中构建的,而我现在只有2010年。 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. 找不到引用的组件“ Microsoft.ReportViewer.WinForms”。 The referenced component 'Microsoft.ReportViewer.Common' could not be found. 找不到引用的组件“ Microsoft.ReportViewer.Common”。

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. 注意:这是一个独立的应用程序,而不是Web应用程序。

Path of reference has changed, search assembly in .Net version framework, and add reference 引用路径已更改,在.Net版本框架中搜索程序集,并添加引用

Add reference and browse to this directory : %programfiles%\\Microsoft Visual Studio 10.0\\ReportViewer\\ 添加引用并浏览到以下目录:%programfiles%\\ Microsoft Visual Studio 10.0 \\ ReportViewer \\

I have same problem here, but i fixed my problem by install MICROSOFT® REPORT VIEWER RUNTIME from Package Manager Consol. 我在这里有同样的问题,但是我通过从软件包管理器Consol安装MICROSOFT®REPORT VIEWER RUNTIME来解决我的问题。

From visual studio choose Tools -> Libraty Package Console -> Package Manager Console. 在Visual Studio中,选择“工具”->“ Libraty软件包控制台”->“软件包管理器控制台”。 Then Type: PM >Install-Package Microsoft.ReportViewer. 然后键入:PM> Install-Package Microsoft.ReportViewer。 and my problem is gone 我的问题不见了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM