首页 技术 正文
技术 2022年11月21日
0 收藏 819 点赞 4,343 浏览 2029 个字

原文:未能加载文件或程序集 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:\WINDOWS\assembly\  看一下就知道什么意思了

copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Design.resources\11.0.0.0_zh-CHS_89845dcd8080cc91\Microsoft.ReportViewer.Design.resources.dll C:\

copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\11.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.ProcessingObjectModel.dll C:\

copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebDesign\11.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.WebDesign.dll C:\

copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebDesign.resources\11.0.0.0_zh-CHS_89845dcd8080cc91\Microsoft.ReportViewer.WebDesign.resources.dll C:\

copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\11.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.WebForms.dll C:\

copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms.resources\11.0.0.0_zh-CHS_89845dcd8080cc91\Microsoft.ReportViewer.WebForms.resources.dll C:\

copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms\11.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.WinForms.dll C:\

copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms.resources\11.0.0.0_zh-CHS_89845dcd8080cc91\Microsoft.ReportViewer.WinForms.resources.dll C:\

copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.Types\11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Types.dll C:\

copy C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.Types.resources\11.0.0.0_zh-CHS_89845dcd8080cc91\Microsoft.SqlServer.Types.resources.dll C:\

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

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,488
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,903
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,737
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,489
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:8,128
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:5,290