无法加载文件或程序集“Microsoft.ReportViewer.WebForms" [英] Could not load file or assembly 'Microsoft.ReportViewer.WebForms'

查看:36
本文介绍了无法加载文件或程序集“Microsoft.ReportViewer.WebForms"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to use the report viewer in asp.net and have uploaded my site. However, when my page containing the report viewer is loaded, it shows the following error:

无法加载文件或程序集Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"或其依赖项之一.定位的程序集的清单定义与程序集引用不匹配.(来自 HRESULT 的异常:0x80131040)

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 网站,所以我不确定问题是什么.

This is my first time deploying an ASP.NET website, so I'm not sure what the problem is.

推荐答案

这个链接给了我一个线索,我没有安装所需的更新(我的问题涉及版本 nr,v11.0.0.0)

This link gave me a clue that I didn't install a required update (my problemed concerned version nr, v11.0.0.0)

ReportViewer 2012 更新要注意的问题"

我安装了更新 SQLServer2008R2SP2

我下载了 ReportViewer.msi,这需要已安装 Microsoft® SQL Server® 2012 的 Microsoft® System CLR 类型(在页面中间寻找安装程序)

I downloaded ReportViewer.msi, which required to have installed Microsoft® System CLR Types for Microsoft® SQL Server® 2012 (look halfway down the page for installer)

在 GAC 中现在可用 WebForms v11.0.0.0 (C:WindowsassemblyMicrosoft.ReportViewer.WebForms v11.0.0.0 以及Microsoft.ReportViewer.Common v11.0.0.0)

In the GAC was now available WebForms v11.0.0.0 (C:WindowsassemblyMicrosoft.ReportViewer.WebForms v11.0.0.0 as well as Microsoft.ReportViewer.Common v11.0.0.0)

这篇关于无法加载文件或程序集“Microsoft.ReportViewer.WebForms"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆