Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Publishing Web site without installing Microsoft Report Viewer

I have a web server with ftp access only, and I can't install Microsoft Report Viewer on it.

How do I publish my asp.net app to the IIS without installing ReportViewer?

I have copied following dlls to my site bin folder:

  • Microsoft.ReportViewer.WebForms.dll
  • Microsoft.ReportViewer.Common.dll

Now I am getting error saying:

An error occurred during local report processing.
The definition of the report 'Reports\QuotationViewReport.rdlc' is invalid.
An unexpected error occurred in Report Processing.
Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

I can't even find a dll named Microsoft.ReportViewer.ProcessingObjectModel.dll in my local machine.

Is it possible to publish my application without installing ReportViewer ?

like image 316
DineshNS Avatar asked Aug 23 '11 17:08

DineshNS


People also ask

What is Microsoft Report Viewer used for?

Description: Microsoft Report Viewer is a software that enables applications that run on the Microsoft . NET Framework to display reports designed using the Microsoft reporting technology.

What is Microsoft Report Viewer redistributable?

The Microsoft Report Viewer Redistributable 2008 SP1 Language Pack includes Windows Forms and ASP.NET Web server controls for viewing reports designed using Microsoft reporting technology.


2 Answers

Pre-requisite : having Microsoft ReportViewer assemblies installed on your development machine (as answered by webkite).

In Visual Studio, from the Add Reference action of your project, choose browse tab and browse to the GAC. (C:\Windows\assembly\GAC_MSIL).

There, find the Microsoft.ReportViewer.ProcessingObjectModel assembly folder, choose the version sub folder suitable for your needs, and add the assembly as a local reference.

Then locate the assembly in your references list, and switch its Local Copy property to true.

For other report viewer assemblies, you should be able to add them directly from the .Net tab in Add Reference dialog box. Do not forget to switch the Local Copy property to true for them too.

With this setup, the ReportViewer assemblies will be copied to your build directory at each build, and you should be able to copy them easily to your target deployment environment.

You may instead try some of the ReportViewer packages than can be found on NuGet. But none of them seem officialy provided by Microsoft.

like image 56
Frédéric Avatar answered Oct 21 '22 10:10

Frédéric


Download & Install
Microsoft Report Viewer 2010 Redistributable Package
http://www.microsoft.com/download/en/details.aspx?id=6442

like image 30
Prasanna Avatar answered Oct 21 '22 11:10

Prasanna