Iis 在不安装Microsoft Report Viewer的情况下发布网站
我有一个只能通过ftp访问的web服务器,无法在其上安装Microsoft Report Viewer 如何在不安装ReportViewer的情况下将我的asp.net应用发布到IIS 我已将以下DLL复制到我的站点bin文件夹:Iis 在不安装Microsoft Report Viewer的情况下发布网站,iis,reportviewer,publish,Iis,Reportviewer,Publish,我有一个只能通过ftp访问的web服务器,无法在其上安装Microsoft Report Viewer 如何在不安装ReportViewer的情况下将我的asp.net应用发布到IIS 我已将以下DLL复制到我的站点bin文件夹: Microsoft.ReportViewer.WebForms.dll Microsoft.ReportViewer.Common.dll 现在我听到一个错误的说法: 本地报表处理过程中出错。 报表“Reports\QuotationViewReport.rdlc
- Microsoft.ReportViewer.WebForms.dll
- Microsoft.ReportViewer.Common.dll
报表“Reports\QuotationViewReport.rdlc”的定义无效。
报表处理中出现意外错误。
无法加载文件或程序集“Microsoft.ReportViewer.ProcessingObjectModel,版本=10.0.0.0,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a”或其依赖项之一。系统找不到指定的文件 我甚至在本地计算机中找不到名为Microsoft.ReportViewer.ProcessingObjectModel.dll的dll
是否可以在不安装ReportViewer的情况下发布我的应用程序?请尝试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后,文件将复制到部署计算机上的全局程序集缓存文件夹下载并安装
Microsoft Report Viewer 2010可再发行软件包
您好您可以找到打开项目的dll文件 并添加引用,然后选择浏览,然后选择c:/windowse/assemple/GACmsil
在这里,您可以找到microsoft report viewer文件夹,并选择所需的先决条件:在开发计算机上安装microsoft ReportViewer程序集(as) 在Visual Studio中,从项目的
添加引用
操作中,选择浏览选项卡并浏览到GAC。
(C:\Windows\assembly\GAC_MSIL
)
在那里,找到Microsoft.ReportViewer.ProcessingObjectModel
程序集文件夹,选择适合您需要的版本子文件夹,并将程序集添加为本地引用
然后在引用列表中找到程序集,并将其本地副本
属性切换为真
对于其他报表查看器程序集,您应该能够直接从添加引用
对话框中的.Net选项卡添加它们。不要忘记将本地副本
属性也切换到true
使用此设置,ReportViewer程序集将在每次生成时复制到您的生成目录,您应该能够轻松地将它们复制到目标部署环境
您可以尝试一些ReportViewer软件包,这些软件包可以在上找到。但它们似乎都不是由Microsoft正式提供的。这是一个NuGet软件包:
安装软件包Microsoft.ReportViewer.WebForms
将这些文件添加到网站的bin文件夹:
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.WebForms.dll
Microsoft.ReportViewer.WebForms.xml
c:\windows\assembly没有Microsoft.ReportViewer.ProcessingObjectModel.dll。安装此ReportViewer.exe将修复此问题。但我不能在托管服务器上安装任何东西。这个解决方案节省了我的时间!谢谢。我以为只要将Microsoft.ReportViewer.WebForms.dll和Microsoft.ReportViewer.Common.dll设置为本地副本就足够了,但需要将Microsoft.ReportViewer.ProcessingObject模型添加到我的项目中。你是我的英雄!非常感谢。非常感谢。非常有用!:-)这应该是最重要的答案那些NuGet软件包看起来确实是微软发布的官方软件包。