未能加载文件或程序集“Microsoft.ReportViewer.WinForms 解决办法

异常信息:性能

未能加载文件或程序集“Microsoft.ReportViewer.WinForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。系统找不到指定的文件。
FileName: Microsoft.ReportViewer.WinForms,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
FusionLog: 警告: 程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)设置为 1。
注意: 会有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。spa

 

解决方法:日志

RDLC报表所需的4个DLL文件提取 RDLC报表文件部 署在客户端若要正常工做,需4个dll文件,分别是:orm

1.Microsoft.ReportViewer.Common.dll,io

2.Microsoft.ReportViewer.WebForms.dll,下载

3.Microsoft.ReportViewer.WinForms.dll,程序

4.Microsoft.ReportViewer.ProcessingObjectModel.dll,方法

网上能够下载到,将此四个dll文件放在项目的bin目录下便可解决。客户端

 

前三个dll文件能够从 ..\Program Files\Microsoft Visual Studio 10.0\ReportViewer路径下能够拿到
注意要保证四个dll的文件版本一致项目

相关文章
相关标签/搜索