【问题标题】:Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0无法加载文件或程序集 'Microsoft.ReportViewer.ProcessingObjectModel,版本 = 10.0.0.0
【发布时间】:2017-12-25 16:54:53
【问题描述】:

使用带有 rdlc 的 MVC5 生成 pdf,它在 localhost 中工作正常,但是当我尝试生成报告时将应用程序部署到服务器时,它会出现一些缺少某些组件的错误.....

“/webapp”应用程序中的服务器错误。

    Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel,
 Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
 dependencies. The system cannot find the file specified.

到目前为止安装在

网络服务器 iis 2012

1- SQLSysClrTypes 2- 报表查看器

重启服务器后仍在打印报告服务器错误

【问题讨论】:

标签: c# pdf iis rdlc asp.net-mvc-5


【解决方案1】:

您可能在 bin 文件夹中缺少此程序集。如果您在全局程序集缓存 (GAC) 中引用它,就会发生这种情况。在 Visual Studio 中检查您的项目引用,找到此程序集,按 F4(您将看到它的属性),然后将 Copy Local 设置为 true。在这种情况下,程序集将始终被复制到 bin 文件夹中。

【讨论】:

  • 是的,但是现在当我在我的 pc iis 中部署时它工作正常,但在 server 2012 iis 中却没有,即使我安装了我在问题中列出的 1,2 个包
【解决方案2】:

安装这个nuget包Cquential.Microsoft.ReportViewer.ProcessingObjectModel

【讨论】:

    猜你喜欢
    • 2019-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-04
    • 2020-11-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多