Publishing Web site without installing Microsoft R

2019-03-24 15:23发布

问题:

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 ?

回答1:

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.



回答2:

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



回答3:

Add these files to your website's bin folder:

Microsoft.ReportViewer.Common.dll

Microsoft.ReportViewer.WebForms.dll

Microsoft.ReportViewer.WebForms.xml



回答4:

This is now available as a NuGet package:

http://www.nuget.org/packages/Microsoft.ReportViewer.WebForms/

Install-Package Microsoft.ReportViewer.WebForms



回答5:

try C:\Windows\assembly and search for Microsoft.ReportViewer.ProcessingObjectModel

Or

You can find ReportViewer.exe at the following location: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer\ReportViewer.exe

after you run ReportViewer.exe, the file will copied to the Global Assembly Cache folder on the deployment computer



回答6:

hello you can find the dll file open your project and add refrences and choose browse and select c:/windowse /assemple/GAc_msil here you find microsoft report viewer folders and select what you want