微软ASP.NET的ReportViewer分析器错误 [英] Microsoft ASP.NET ReportViewer Parser Error

查看:243
本文介绍了微软ASP.NET的ReportViewer分析器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用了一段时间网站一个MS的ReportViewer组件现在,但最近我已经得到下图所示的错误。


  

分析器错误信息:基类
  包括字段XYZ,但其
  类型
  (Microsoft.Reporting.WebForms.ReportViewer)
  不与类型兼容
  控制
  (Microsoft.Reporting.WebForms.ReportViewer)。


 < rsweb:的ReportViewer ID =XYZ=服务器WIDTH =100%FONT-名称=宋体FONT-SIZE =8PTHEIGHT = 400像素ProcessingMode =本地ShowExportControls =false的>

现在,我得到在Visual Studio以及在生产这个错误。我已经安装在生产中的ReportViewer可再发行。

是我莫名其妙地失踪在我的项目,或一些参考?


解决方案

我发现了答案:以某种方式Microsoft.Reporting.WebForms版本9的基准得到了切换到版本8这引起了错误。所以删除参考,并增加在参考的正确版本似乎已经解决了这一问题。

编辑:

那么,根据.vbproj文件的previous版本,它是9的引用,尽管该项目引用属性屏幕告诉我8.总之我真的不知道该怎么设法得到拧起来,但似乎现在的工作。

如果任何人都经历了这样或有一定的见解,请贡献。

I've been using a MS ReportViewer component in a website for a while now, but recently I've been getting the error shown below.

Parser Error Message: The base class includes the field 'xyz', but its type (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Microsoft.Reporting.WebForms.ReportViewer).

<rsweb:ReportViewer ID="xyz" runat="server" Width="100%" Font-Names="Verdana" Font-Size="8pt" Height="400px" ProcessingMode="Local" ShowExportControls="false">

Now, I get this error in Visual Studio as well as in production. I have the ReportViewer Redistributable installed in production.

Am I somehow missing a reference in my project, or something?

解决方案

I discovered the answer: Somehow the reference to version 9 of Microsoft.Reporting.WebForms got switched to version 8. This caused the error. So deleting the reference and adding in the correct version of the reference seems to have fixed the problem.

Edit:

Well, according to the previous version of the .vbproj file, it was a reference to 9, despite that the project references properties screen told me 8. In short I'm not really sure what managed to get screwed up, but it seems to be working now.

If anyone has experienced this or has some insight, please contribute.

这篇关于微软ASP.NET的ReportViewer分析器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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