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

2022-05-10 08:38:53 浏览数 (1)

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客户端的配置安装是个麻烦事,老报错,记下,仅供参考!

0 人点赞