asp.net - 无法加载文件或程序集 'Microsoft.ReportViewer.WebForms'

标签 asp.net reporting-services reportviewer

我正在尝试使用 asp.net 中的报告查看器并已上传我的网站。但是,当加载包含报表查看器的页面时,它显示以下错误:

Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

这是我第一次部署 ASP.NET 网站,所以我不确定问题是什么。

最佳答案

此链接给了我一个线索,表明我没有安装所需的更新(我有问题的相关版本号,v11.0.0.0)

ReportViewer 2012 Update 'Gotcha' to be aware of

我安装了更新 SQLServer2008R2SP2

我下载了ReportViewer.msi ,需要安装 Microsoft® System CLR Types for Microsoft® SQL Server® 2012 (look halfway down the page for installer)

GAC 中现已提供 WebForms v11.0.0.0 (C:\Windows\assembly\Microsoft.ReportViewer.WebForms v11.0.0.0 以及Microsoft.ReportViewer.Common v11.0.0.0)

关于asp.net - 无法加载文件或程序集 'Microsoft.ReportViewer.WebForms',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16493817/

相关文章:

javascript - 从包含 d3js 图表的 HTML 页面生成 PDF

reporting-services - 部署到报告服务器时出现 "The specified report server url could not be found"错误

sql-server-2005 - SQL Server 2005 Reporting Services : How to count rows that are not null? 计算总数的任何提示?

c# - 数据源未添加到 ReportViewer

c# - 如何在 Microsoft Report Viewer 的报表的每一页中显示标题

asp.net - 如何在IIS 7.5上使用ASP.NET表单例份验证保护静态文件?

Jquery UI 选项卡不出现

c# - MVC 4 Web API 注册过滤器

sql - 当 child 有多个 parent 时,SSRS 递归 parent 只给不同的 child

c# - 如何将报表查看器语言设置为与 CultureInfo.CurrentUICulture 相同?