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:
我正在尝试在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)
无法加载文件或程序集的Microsoft.ReportViewer。WebForms, Version=11.0.0.0, Culture=中性,PublicKeyToken= 89845dcd808080cc91 '或它的一个依赖项。定位程序集的清单定义与程序集引用不匹配。(从HRESULT例外:0 x80131040)
This is my first time deploying an ASP.NET website, so I'm not sure what the problem is.
这是我第一次部署ASP。我不知道是什么问题。
11 个解决方案
#1
55
This link gave me a clue that I didn't install a required update (my problemed concerned version nr, v11.0.0.0)
这个链接给了我一个线索,说明我没有安装必需的更新(我遇到问题的版本是nr, v11.0.0.0)
ReportViewer 2012 Update 'Gotcha' to be aware of
ReportViewer 2012更新‘Gotcha’需要注意
I installed the update SQLServer2008R2SP2
我安装了更新SQLServer2008R2SP2
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)
我下载的ReportViewer。msi,需要安装Microsoft®系统为Microsoft®SQL Server®2012 CLR类型(中途下页面寻找安装程序)
In the GAC was now available WebForms v11.0.0.0 (C:\Windows\assembly\Microsoft.ReportViewer.WebForms
v11.0.0.0
as well as Microsoft.ReportViewer.Common
v11.0.0.0
)
GAC中的WebForms v11.0.0.0 (C:\Windows\汇编\Microsoft.ReportViewer)已经可用。WebForms v11.0.0.0以及Microsoft.ReportViewer。常见的v11.0.0.0)
#2
24
I've installed Microsoft.ReportViewer.2012.Runtime nuget package and problem has been solved without installing ReportViewer.msi or sql feature pack 12
我Microsoft.ReportViewer.2012安装。运行时nuget包和问题已经在不安装ReportViewer的情况下得到了解决。msi或sql特性包12
#3
22
You need to reference both Microsoft.ReportViewer.WebForms and Microsoft.ReportViewer.Common and set the CopyLocal property to true. This will result in the dll's being copied to our bin directory (both are necessary).
您需要同时引用Microsoft.ReportViewer。WebForms和Microsoft.ReportViewer。Common并将CopyLocal属性设置为true。这将导致dll被复制到bin目录(这两个都是必需的)。
#4
8
I've solved the problem by copying both
我把两者都抄下来就解决了这个问题
-
Microsoft.ReportViewer.WebForms.dll from
C:\Program Files (x86)\Microsoft Visual Studio 12.0\ReportViewer
- Microsoft.ReportViewer.WebForms。从Visual Studio 12.0 \ ReportViewer C:\Program Files (x86)\Microsoft dll
- and Microsoft.reportviewer.common.dll from
C:\Program Files\Microsoft Office\Office15\ADDINS\PowerPivot Excel Add-in
- 并从C:\Program Files\Microsoft Microsoft.reportviewer.common.dll办公室\ Office15 \外接程序\ PowerPivot Excel插件
into bin folder (website).
到本文件夹中(网站)。
Of course web.config
must have:
当然网络。配置必须:
<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false" />
</httpHandlers>
<assemblies>
<add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
<add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</buildProviders>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</handlers>
</system.webServer>
And that's all. For me is ok.
这是所有。对我来说是好的。
Hope this helps.
希望这个有帮助。
#5
1
I ran into the same error. My web app was pointed towards report viewer version 10.0 however if 11.0 is installed it adds a redirect in the 10.0 .dll to 11.0. This became an issue when 11.0 was uninstalled as this does not correct the redirect in the 10.0 .dll. The fix in my case was to simply uninstall and reinstall 10.0.
我遇到了同样的错误。我的web应用程序指向报表查看器10.0版本,但是如果安装了11.0,它会将10.0 .dll中的重定向添加到11.0。当卸载11.0时,这就成了一个问题,因为这不能纠正10.0 .dll中的重定向。我的解决方案是简单地卸载并重新安装10.0。
#6
0
Upload the file Microsoft.ReportViewer.WebForms.dll to your bin directory of your web applicaion.
Microsoft.ReportViewer.WebForms上传文件。dll到您的bin目录的web应用程序。
You can find this dll file in the bin directory of your local web application.
您可以在本地web应用程序的bin目录中找到这个dll文件。
#7
0
I had this error with an old webforms app. Turns out there was a line in the markup causing the issue. I removed it and the error disappeared.
我在一个旧的webforms应用程序中犯了这个错误。我把它去掉,错误就消失了。
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
#8
0
I had this error when going from version 10.0.0.0, i.e. "Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
从10.0。0版本开始,我有这个错误。“Microsoft.ReportViewer。WebForms, Version=10.0.0, Culture=中性,PublicKeyToken=b03f5f7f11d50a3a”/>
to version 11.0.0.0, i.e.
11.0.0.0版本,即。
"Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
“Microsoft.ReportViewer。WebForms,Version = 11.0.0.0、文化=中立,都89845 dcd8080cc91”
It took a while until I understood that not only the version was changed but also the public token key, as you can see above.
我花了一段时间才明白,不仅修改了版本,还修改了公钥,正如您在上面看到的。
#9
0
I had the same error for a different package. My problem was that a dependent project was referencing a different version. I changed them to be the same version and all was good.
对于不同的包,我有相同的错误。我的问题是依赖项目引用了不同的版本。我把它们改成了相同的版本,一切都很好。
#10
0
My solution is:
我的解决方案是:
- Copy dll Microsoft.ReportViewer.WebForms.dll into Bin folder in your project.
- dll Microsoft.ReportViewer.WebForms副本。将dll放入项目中的Bin文件夹。
- Remove your reference.
- 删除你参考。
- Add new reference from bin folder.
- 从bin文件夹添加新的引用。
I hope this can help.
我希望这能有所帮助。
#11
0
My trial version of DevExpress had expired. Try renewing it again.
我的试用版DevExpress已经过期。尝试更新一遍。
#1
55
This link gave me a clue that I didn't install a required update (my problemed concerned version nr, v11.0.0.0)
这个链接给了我一个线索,说明我没有安装必需的更新(我遇到问题的版本是nr, v11.0.0.0)
ReportViewer 2012 Update 'Gotcha' to be aware of
ReportViewer 2012更新‘Gotcha’需要注意
I installed the update SQLServer2008R2SP2
我安装了更新SQLServer2008R2SP2
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)
我下载的ReportViewer。msi,需要安装Microsoft®系统为Microsoft®SQL Server®2012 CLR类型(中途下页面寻找安装程序)
In the GAC was now available WebForms v11.0.0.0 (C:\Windows\assembly\Microsoft.ReportViewer.WebForms
v11.0.0.0
as well as Microsoft.ReportViewer.Common
v11.0.0.0
)
GAC中的WebForms v11.0.0.0 (C:\Windows\汇编\Microsoft.ReportViewer)已经可用。WebForms v11.0.0.0以及Microsoft.ReportViewer。常见的v11.0.0.0)
#2
24
I've installed Microsoft.ReportViewer.2012.Runtime nuget package and problem has been solved without installing ReportViewer.msi or sql feature pack 12
我Microsoft.ReportViewer.2012安装。运行时nuget包和问题已经在不安装ReportViewer的情况下得到了解决。msi或sql特性包12
#3
22
You need to reference both Microsoft.ReportViewer.WebForms and Microsoft.ReportViewer.Common and set the CopyLocal property to true. This will result in the dll's being copied to our bin directory (both are necessary).
您需要同时引用Microsoft.ReportViewer。WebForms和Microsoft.ReportViewer。Common并将CopyLocal属性设置为true。这将导致dll被复制到bin目录(这两个都是必需的)。
#4
8
I've solved the problem by copying both
我把两者都抄下来就解决了这个问题
-
Microsoft.ReportViewer.WebForms.dll from
C:\Program Files (x86)\Microsoft Visual Studio 12.0\ReportViewer
- Microsoft.ReportViewer.WebForms。从Visual Studio 12.0 \ ReportViewer C:\Program Files (x86)\Microsoft dll
- and Microsoft.reportviewer.common.dll from
C:\Program Files\Microsoft Office\Office15\ADDINS\PowerPivot Excel Add-in
- 并从C:\Program Files\Microsoft Microsoft.reportviewer.common.dll办公室\ Office15 \外接程序\ PowerPivot Excel插件
into bin folder (website).
到本文件夹中(网站)。
Of course web.config
must have:
当然网络。配置必须:
<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false" />
</httpHandlers>
<assemblies>
<add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
<add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</buildProviders>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</handlers>
</system.webServer>
And that's all. For me is ok.
这是所有。对我来说是好的。
Hope this helps.
希望这个有帮助。
#5
1
I ran into the same error. My web app was pointed towards report viewer version 10.0 however if 11.0 is installed it adds a redirect in the 10.0 .dll to 11.0. This became an issue when 11.0 was uninstalled as this does not correct the redirect in the 10.0 .dll. The fix in my case was to simply uninstall and reinstall 10.0.
我遇到了同样的错误。我的web应用程序指向报表查看器10.0版本,但是如果安装了11.0,它会将10.0 .dll中的重定向添加到11.0。当卸载11.0时,这就成了一个问题,因为这不能纠正10.0 .dll中的重定向。我的解决方案是简单地卸载并重新安装10.0。
#6
0
Upload the file Microsoft.ReportViewer.WebForms.dll to your bin directory of your web applicaion.
Microsoft.ReportViewer.WebForms上传文件。dll到您的bin目录的web应用程序。
You can find this dll file in the bin directory of your local web application.
您可以在本地web应用程序的bin目录中找到这个dll文件。
#7
0
I had this error with an old webforms app. Turns out there was a line in the markup causing the issue. I removed it and the error disappeared.
我在一个旧的webforms应用程序中犯了这个错误。我把它去掉,错误就消失了。
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
#8
0
I had this error when going from version 10.0.0.0, i.e. "Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
从10.0。0版本开始,我有这个错误。“Microsoft.ReportViewer。WebForms, Version=10.0.0, Culture=中性,PublicKeyToken=b03f5f7f11d50a3a”/>
to version 11.0.0.0, i.e.
11.0.0.0版本,即。
"Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
“Microsoft.ReportViewer。WebForms,Version = 11.0.0.0、文化=中立,都89845 dcd8080cc91”
It took a while until I understood that not only the version was changed but also the public token key, as you can see above.
我花了一段时间才明白,不仅修改了版本,还修改了公钥,正如您在上面看到的。
#9
0
I had the same error for a different package. My problem was that a dependent project was referencing a different version. I changed them to be the same version and all was good.
对于不同的包,我有相同的错误。我的问题是依赖项目引用了不同的版本。我把它们改成了相同的版本,一切都很好。
#10
0
My solution is:
我的解决方案是:
- Copy dll Microsoft.ReportViewer.WebForms.dll into Bin folder in your project.
- dll Microsoft.ReportViewer.WebForms副本。将dll放入项目中的Bin文件夹。
- Remove your reference.
- 删除你参考。
- Add new reference from bin folder.
- 从bin文件夹添加新的引用。
I hope this can help.
我希望这能有所帮助。
#11
0
My trial version of DevExpress had expired. Try renewing it again.
我的试用版DevExpress已经过期。尝试更新一遍。