【问题标题】:Visual Studio 11 Beta / IIS 7.5: Microsoft.ReportViewer.Common V11 not foundVisual Studio 11 Beta / IIS 7.5:未找到 Microsoft.ReportViewer.Common V11
【发布时间】:2012-04-05 01:19:22
【问题描述】:

我使用 Visual Studio 11 Beta (MVC3 + .Net 4.0)。我将项目部署到 IIS 7.5 (MS 2008 Server),当我生成报告时,出现以下错误:

System.IO.FileNotFoundException:Die Datei oder Assembly "Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" 或一个未找到其依赖项。系统找不到指定的文件。

在我的本地开发人员机器上,我找不到“Microsoft.ReportViewer.Common.dll”版本 11.0.0.0 只有 10,但在本地它可以正常工作! :(

【问题讨论】:

  • 您具体需要了解什么?
  • 我遇到了同样的问题。我觉得奇怪的是 Common dll 不在 Visual Studio 解决方案中或作为参考添加。特别是因为这很容易通过标记对“复制到本地”的引用来解决

标签: visual-studio asp.net-mvc-3 reporting iis-7.5 asp.net-4.0


【解决方案1】:

我遇到了同样的问题,我关注了these steps!

希望这会有所帮助。

要总结链接,请从 命令行 转到 GAC 并找到您的问题 DLL:

C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Common\Pick_A_Framework_Version\Microsoft.ReportViewer.Common.dll
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\Pick_A_Framework_Version\Microsoft.ReportViewer.ProcessingObjectModel.dll

并且可能:

C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\Pick_A_Framework_Version\Microsoft.ReportViewer.WebForms.dll
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WinForms\Pick_A_Framework_Version\Microsoft.ReportViewer.WinForms.dll

将这些 dll 复制到您的 bin 文件夹中,您应该已准备就绪。

【讨论】:

【解决方案2】:

curlackhacker 的建议让我克服了错误,但随后出现了 internalRender 异常。我建议将我的答案作为最后的手段,因为我无法确切解释它为什么起作用,但这是唯一对我有用的东西:

在服务器上安装报表生成器。

注意:这解决了 .net 4.0 IIS 7 中的相同问题,并且该项目是一个 Web 服务,所以正如我所说,首先尝试 curlackhackers 解决方案。祝各位读者好运。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-19
    相关资源
    最近更新 更多