发布网站而不安装 Microsoft Report Viewer
我有一个只能通过 ftp 访问的 Web 服务器,但无法在其上安装 Microsoft Report Viewer。
如何在不安装 ReportViewer 的情况下将我的 ASP.NET 应用程序发布到 IIS?
我已将以下 dll 复制到我的站点 bin 文件夹中:
- Microsoft.ReportViewer.WebForms.dll
- Microsoft.ReportViewer.Common.dll
现在我收到错误消息:
本地报告处理期间发生错误。
报告“Reports\QuotationViewReport.rdlc”的定义无效。
报表处理中发生意外错误。
无法加载文件或程序集“Microsoft.ReportViewer.ProcessingObjectModel,Version=10.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”或其依赖项之一。系统找不到指定的文件。
我什至在本地计算机中找不到名为 Microsoft.ReportViewer.ProcessingObjectModel.dll
的 dll。
是否可以在不安装 ReportViewer 的情况下发布我的应用程序?
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
先决条件:在您的开发计算机上安装 Microsoft ReportViewer 程序集(如 webkite 回答)。
在 Visual Studio 中,从项目的“添加引用”操作中,选择“浏览”选项卡并浏览到 GAC。
(
C:\Windows\Assembly\GAC_MSIL
)。在那里,找到
Microsoft.ReportViewer.ProcessingObjectModel
程序集文件夹,选择适合您需要的版本子文件夹,并将程序集添加为本地引用。然后在引用列表中找到该程序集,并将其
Local Copy
属性切换为true
。对于其他报表查看器程序集,您应该能够直接从
添加引用
对话框中的.Net选项卡添加它们。不要忘记将它们的Local Copy
属性也切换为true
。通过此设置,ReportViewer 程序集将在每次构建时复制到您的构建目录,并且您应该能够轻松地将它们复制到目标部署环境。
您可以尝试使用 NuGet 上找不到的 ReportViewer 包。但它们似乎都不是微软官方提供的。
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 totrue
.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 theLocal Copy
property totrue
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.
下载&安装
Microsoft Report Viewer 2010 可再发行软件包
http://www.microsoft.com/download/en/details.aspx ?id=6442
Download & Install
Microsoft Report Viewer 2010 Redistributable Package
http://www.microsoft.com/download/en/details.aspx?id=6442
将这些文件添加到您网站的 bin 文件夹中:
Add these files to your website's bin folder:
现在可以作为 NuGet 包使用:
http://www.nuget.org/packages /Microsoft.ReportViewer.WebForms/
安装包 Microsoft.ReportViewer.WebForms
This is now available as a NuGet package:
http://www.nuget.org/packages/Microsoft.ReportViewer.WebForms/
Install-Package Microsoft.ReportViewer.WebForms
尝试 C:\Windows\ assembly 并搜索 Microsoft.ReportViewer.ProcessingObjectModel
或者
您可以在以下位置找到 ReportViewer.exe:C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer\ ReportViewer.exe
运行 ReportViewer.exe 后,该文件将复制到部署计算机上的全局程序集缓存文件夹
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
你好,你可以找到dll文件打开你的项目
并添加引用并选择浏览并选择 c:/windowse /assemple/GAc_msil
在这里您可以找到 Microsoft Report Viewer 文件夹并选择您想要的内容
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