且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

未能加载文件或程序集 Microsoft.ReportViewer.Common, Version=11.0.0.0

更新时间:2021-12-01 23:52:56

原文: 未能加载文件或程序集 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客户端的配置安装是个麻烦事,老报错,记下,仅供参考!




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