zoukankan      html  css  js  c++  java
  • 未能加载文件或程序集 Microsoft.ReportViewer.Common, Version=11.0.0.0

    System.IO.FileNotFoundException: 未能加载文件或程序集“Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91”或它的某一个依赖项。系统找不到指定的文件。
    文件名:“Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91”


    报错堆栈,意思是:客户端缺少了 Microsoft.ReportViewer.Common 文件,

    然后我搜索整个计算机找到对应的dll文件后,还是报错,上网搜了好久,

    缺少哪些文件或程序集,到程序开发计算机下找到对应的烤到客户端的程序启动目录下即可(项目烤到Bin\Debug目录下)


    只能用命令的方式烤:

    11.0.0.0 是版本号,89845dcd8080cc91 你打开 C:WINDOWSassembly  看一下就知道什么意思了

    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.Design.resources11.0.0.0_zh-CHS_89845dcd8080cc91Microsoft.ReportViewer.Design.resources.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.ProcessingObjectModel11.0.0.0__89845dcd8080cc91Microsoft.ReportViewer.ProcessingObjectModel.dll C:


    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WebDesign11.0.0.0__89845dcd8080cc91Microsoft.ReportViewer.WebDesign.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WebDesign.resources11.0.0.0_zh-CHS_89845dcd8080cc91Microsoft.ReportViewer.WebDesign.resources.dll C:


    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WebForms11.0.0.0__89845dcd8080cc91Microsoft.ReportViewer.WebForms.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WebForms.resources11.0.0.0_zh-CHS_89845dcd8080cc91Microsoft.ReportViewer.WebForms.resources.dll C:


    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WinForms11.0.0.0__89845dcd8080cc91Microsoft.ReportViewer.WinForms.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.ReportViewer.WinForms.resources11.0.0.0_zh-CHS_89845dcd8080cc91Microsoft.ReportViewer.WinForms.resources.dll C:


    copy C:WINDOWSassemblyGAC_MSILMicrosoft.SqlServer.Types11.0.0.0__89845dcd8080cc91Microsoft.SqlServer.Types.dll C:
    copy C:WINDOWSassemblyGAC_MSILMicrosoft.SqlServer.Types.resources11.0.0.0_zh-CHS_89845dcd8080cc91Microsoft.SqlServer.Types.resources.dll C:


    rdlc报表winform客户端的配置安装是个麻烦事,老报错,记下,仅供参考!




  • 相关阅读:
    《人件》读书笔记
    《人月神话》读书笔记
    使用表驱动编程设计打印万年历
    maven spring整合mybatis是使用junit测试报字节序列的错误
    idea中建立maven web项卡在Generating Project in Batch mode
    ideaIU-2016.2.5激活
    maven初步入门demo
    Scala基础篇-04 try表达式
    面试题12-旋转数组的最小值
    scala基础篇-03 if与for
  • 原文地址:https://www.cnblogs.com/xiaxiaolu/p/4367142.html
Copyright © 2011-2022 走看看