Problems deploying a WinForms application using Microsoft ReportViewer

I published a WinForms application from Visual Studio 2010. It uses .NET 4.0. in the prerequisite dialog box in the Publish panel, I selected the .NET 4.0 client profile and the Windows 3.0 installer. After publishing the application to disk, I transferred it to the client computer on which the client .NET profile was first installed, and after rebooting it gave the following error message:

Unable to install or run the application. The application first requires the assembly Microsoft.ReportViewer.Common version 10.0.0 in the global build cache.

After this message, the installation process is completed. I am using a .NET report in my project (not Crystal Reports).

+8
installer deployment clickonce reportviewer
source share
5 answers

You need to deploy ReportViewer controls separately.

For more information, see MSDN: Deploying Reports and ReportViewer Controls.

ReportViewer Supervised Manager is a self-extracting file called ReportViewer.exe that contains .msi and other files. You can find ReportViewer.exe in the following location:

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

You can also download it from the Microsoft Download Center .

[.,]

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

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

  • For Windows Forms applications, including controls as an application requires that they be automatically installed using the expression. You can use the boot application to automate this step:

    • Open the project properties page.

    • Click Publish , and then click Prerequisites .

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

    • Publish the application.

During application installation, a check is performed on the local computer to see if ReportViewer is already installed. If this is not an installed installer, install it.

+10
source share

I think this is probably a new feature of VS2012, but now you can deploy the report viewer (and SQL Server CLR types) using / WPF forms by clicking once after installation .

  • Open the project properties page.
  • Click the Publish tab and click the Prerequisites button.
  • Select Microsoft Visual Studio 2012 Report Viewer and SQL Server CLR, then click OK.
  • Ensure that the prerequisites for downloading from the vendor options component This is the only supported option. Then click OK.
  • Click the "Options" button.
  • On the Deployment tab, specify the deployment web page and select the Automatically create deployment web page after publishing check box.
  • Click OK and publish the app.
+1
source share

look at this: Running ReportViewer.exe

and we are given the same link. it will help you

0
source share

Download and install Microsoft Report Viewer 2012 Runtime CTP from the following URL ...

http://www.microsoft.com/en-in/download/details.aspx?id=27230

I had the same problem, but it was solved after installing above ...

Thanks...

0
source share

I had the same problem for several months, one cat v.11 machine was installed (manually, adding some components), and the other v.10 (from ms frame itself) when I published it from my machine, she gave an error.
this is how i fixed it
Nuget has 2 packages,
Microsoft.ReportViewer.Windows (Microsoft.ReportViewer 2012 runtime) and
ReportViewer.Common 10.0
I installed them both, now his work is absolutely correct

0
source share

All Articles