【问题标题】:Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectModel, Version=13.0.0.0无法加载文件或程序集 Microsoft.ReportViewer.ProcessingObjectModel,版本 = 13.0.0.0
【发布时间】:2019-01-10 16:48:35
【问题描述】:

当我尝试查看报告时:

ReportViewer.ReportHost.LocalReport.SetParameters(pr);

我得到了这个例外:

无法加载文件或程序集 Microsoft.ReportViewer.ProcessingObjectModel,版本=13.0.0.0

我在任何地方都找不到程序集Microsoft.ReportViewer.ProcessingObjectModel, Version=13.0.0.0。该文件不在我的计算机上,我也无法在网络上找到它。

我在哪里可以找到这个 dll?

【问题讨论】:

  • 您是否将此 dll 添加到您的项目引用中?它的图标上有黄色标记吗?
  • 我已经添加了 Microsoft.ReportViewer.Common 和 Microsoft.ReportViewer.WinForms 并且都是 13.0.0.0 版本,但是我在任何地方都找不到 Microsoft.ReportViewer.ProcessingObjectModel.dll。
  • 问题还没解决,请帮忙

标签: c# wpf reportviewer


【解决方案1】:

执行ReportViewer.exe后发现

C:\Program Files (x86)\Microsoft Visual Studio 14.0\sdk\Bootstrapper\Packages\ReportViewer\ReportViewer.exe

dll Microsoft.ReportViewer.ProcessingObjectModel 应该在GAC 文件夹中创建:

%windir%\Microsoft.NET\assembly\

【讨论】:

  • 我认为这确实是我的问题,我没有在提到的路径中找到 ReportViewer.exe,而是只找到了 SqlClrTypes_x64 文件夹,并且在 GAC 文件夹中没有找到 Microsoft.ReportViewer.ProcessingObjectModel 的 dll,我错过了什么:(
  • @MajdAlbaho 你能在你的电脑上搜索 ReportViewer.exe 吗?
  • @MajdAlbaho 您可以先查看 GAC 文件夹。它可能已经存在
  • 我从微软下载了报表查看器:microsoft.com/en-us/download/details.aspx?id=45496 并安装它。
  • 请您在我的电脑上的“AnyDesk”上远程连接:)
猜你喜欢
  • 2017-12-25
  • 1970-01-01
  • 2018-01-20
  • 2017-12-21
  • 1970-01-01
  • 1970-01-01
  • 2017-10-15
  • 2020-05-09
  • 2018-10-04
相关资源
最近更新 更多