问题部署一个WinForms应用程序,使用微软的ReportViewer [英] Problems deploying a WinForms app that uses Microsoft ReportViewer

查看:310
本文介绍了问题部署一个WinForms应用程序,使用微软的ReportViewer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经出版了从Visual Studio 2010中的WinForms应用程序它使用.NET 4.0。在发布窗格中的prerequisite对话框我选择了.NET 4.0客户端配置文件和Windows安装程序3.0。发布应用程序到磁盘后,我移居到它首先安装.NET客户端配置文件,并重新启动后,它给了以下错误消息客户端的计算机:

I have published a WinForms application from Visual Studio 2010. It uses .NET 4.0. in the prerequisite dialog in Publish pane I selected .NET 4.0 Client Profile and Windows Installer 3.0. After publishing application to disk, I migrated it to client's computer which first installed .NET Client Profile and after reboot it gave following error message:

无法安装或运行应用程序。该应用程序需要组装, Microsoft.ReportViewer.Common 在全局程序集缓存第10.0.0版本。

Unable to Install or run application. The application requires that assembly, Microsoft.ReportViewer.Common version 10.0.0 in global assembly cache first.

这条消息后,在安装过程中退出。我用在我的项目(​​不水晶报表)的.NET的报告。

After this message the installation process exits. I'm using .NET's report in my project (not Crystal Reports).

推荐答案

您已经部署的ReportViewer分别控制。

在这里检查MSDN上了解更多信息:部署报告和控制的ReportViewer

Check here on MSDN for more information: Deploying Reports and ReportViewer Controls

ReportViewer控件可再发行名为ReportViewer.exe,其中包括一个.msi和其他文件的自解压文件。你可以找到ReportViewer.exe在以下位置:

The ReportViewer control redistributable is a self-extracting file named ReportViewer.exe that includes an .msi and other files. You can find ReportViewer.exe at the following location:

%PROGRAMFILES%\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\ReportViewer\ReportViewer.exe

您也可以在<一个href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a941c6b2-64dd-4d03-9ca7-4017a0d164fd&displaylang=en">download它从Microsoft下载中心。

[。 。 。 ]

控制你所使用的类型   决定了ReportViewer.exe   应运行

The type of control you are using determines where ReportViewer.exe should be run.

      
  • 对于ASP.NET应用程序,运行   ReportViewer.exe Web服务器上   承载您的应用程序。这必须   由服务器管理员来完成。

  • For ASP.NET applications, run ReportViewer.exe on the Web server that hosts your application. This must be done by a server administrator.

有关Windows窗体应用程序,   包括控制作为应用   prerequisite使得它们   与自动安装   应用。您可以使用   引导应用程序实现自动化   此步骤:

For Windows Forms applications, include the controls as an application prerequisite so that they are installed automatically with your application. You can use the bootstrapping application to automate this step:

      
  • 打开项目属性页。

  • Open the project properties page.

点击发布,然后点击    prerequisites

Click Publish, and then click Prerequisites.

选择微软的Visual Studio 2010   报告查看器,然后点击确定

Select Microsoft Visual Studio 2010 Report Viewer, and then click OK.

发布应用程序。

在应用程序安装时,   检查在本地执行   计算机,看看是否是的ReportViewer   已安装。如果它不是   安装时,安装程​​序将   安装。

During application installation, a check is performed on the local computer to see if ReportViewer is already installed. If it is not installed, the Setup program will install it.

这篇关于问题部署一个WinForms应用程序,使用微软的ReportViewer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆