zoukankan      html  css  js  c++  java
  • RDLC的部署(无法找到Microsoft.ReportViewer.ProcessingObjectModel.dll文件)

    本人也是因为这个问题折腾了半天,幸好有这篇博客  感谢!。

    dlc 相比微软的其他产品来说,做得还真是够烂的了,比水晶报表也烂得多。 但不知为何我还是宁可先择 rdlc。并且渐渐上手了。

    rdlc 和水晶报表一样存在部署的问题。

    尤其是Microsoft.ReportViewer.ProcessingObjectModel.dll这个文件,你在计算机上直接查找是没有的,我找了好长时间查发现下面的方法,听好用的,给大家分享下。

    如果服务器不受你控制,可以把和 ReportViewer 相关的 dll 拷出来,再上传到网站的 bin 目录下:

    运行:cmd

    cd C:WINDOWSassembly

    dir

    cd gac_msil

    dir *reportview* /s

    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.Common9.0.0.0__b03f5f7f11d50a3aMicrosoft.ReportViewer.Common.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.Common.resources9.0.0.0_zh-CHS_b03f5f7f11d50a3aMicrosoft.ReportViewer.Common.resources.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.Design9.0.0.0__b03f5f7f11d50a3aMicrosoft.ReportViewer.Design.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.Design.resources9.0.0.0_zh-CHS_b03f5f7f11d50a3aMicrosoft.ReportViewer.Design.resources.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.ProcessingObjectModel9.0.0.0__b03f5f7f11d50a3aMicrosoft.ReportViewer.ProcessingObjectModel.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WebDesign9.0.0.0__b03f5f7f11d50a3aMicrosoft.ReportViewer.WebDesign.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WebDesign.resources9.0.0.0_zh-CHS_b03f5f7f11d50a3aMicrosoft.ReportViewer.WebDesign.resources.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WebForms9.0.0.0__b03f5f7f11d50a3aMicrosoft.ReportViewer.WebForms.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WebForms.resources9.0.0.0_zh-CHS_b03f5f7f11d50a3aMicrosoft.ReportViewer.WebForms.resources.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WinForms9.0.0.0__b03f5f7f11d50a3aMicrosoft.ReportViewer.WinForms.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WinForms.resources9.0.0.0_zh-CHS_b03f5f7f11d50a3aMicrosoft.ReportViewer.WinForms.resources.dll C:

    如果服务器受你控制,就好办得多:

    下载 Microsoft Report Viewer 2008 SP1 Redistributable

    下载 Microsoft Report Viewer Redistributable 2008 SP1 语言包

    按顺序在服务器上安装它们就可以了。

    千万要记得要重启一下IIS。

    Microsoft Report Viewer 2008 SP1 应该是比较新的版本了,如果版本太低(如,VS 自带的),它使用和提供给客户端的打印控件的版本也是比较低的,貌似是 RSClientPrint Class 2005.90.3000.0。这个版本存在安全漏洞,自动更新过的或者是新版的 Windows 不会提示下载和不使用这个控件。Microsoft Report Viewer 2008 SP1 使用和提供给客户端的打印控件的版本为:RSClientPrint 2005 Class 2005.90.3279.0。

    在 web.config 中加上 <globalization culture="zh-CN" uiCulture="zh-CN" /> 可以让 Report Viewer 的工具栏的文字为中文。


  • 相关阅读:
    MongoDB mongod.log "connection refused because too many open connections" 处理方法
    12C RAC 故障分析
    Linux(Redhat 7.6)安装PG(Postgresql 9.6.0)
    OGG异构平台安装部署 MySQL->Oracle
    Redhat 7安装Oracle 11.2.0.4 RAC 数据库软件中报错:Error in invoking target 'agent nmhs' of makefile
    Redhat 7.6安装11G RAC GI时遇到此类报错
    Oracle 19.3 RAC on Redhat 7.6 安装最佳实践
    RAC环境中某数据文件(非system表空间)创建在本地,不停机迁移到ASM磁盘中
    python 多线程
    go博客大全
  • 原文地址:https://www.cnblogs.com/rstar/p/8654268.html
Copyright © 2011-2022 走看看