无法转换“CrystalDecision.Web.CrystalReportViewer”类型的对象来键入“CrystalDecisions.Web.CrystalReportViewerBase”。 [英] unable to cast object of type 'CrystalDecision.Web.CrystalReportViewer' to type "CrystalDecisions.Web.CrystalReportViewerBase."

查看:92
本文介绍了无法转换“CrystalDecision.Web.CrystalReportViewer”类型的对象来键入“CrystalDecisions.Web.CrystalReportViewerBase”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我已经安装了Crystal Reports for Visual Studio 2010的最终版本。我创建了一个新的ASP.Net项目,保存它,关闭它,然后又回来了。由于Crystal Reports的版本过时,我被提示转换项目。但我刚刚创建了该项目......该版本如何已经过时了?此外,转换完成后,CrystalReportViewers错误声明 无法将CrystalDecisions.Web.CrystalReportViewer类型的对象强制转换为CrystalDecisions.Web.CrystalReportViewerBase 。我我正在使用.NET Framework 4.0。如何解决这个问题?请帮助我。









谢谢,

Ramu

解决方案

我有同样的问题,我通过更改版本来解决它号码:



步骤解决方案:

1-将您的查看器拖放到页面上。

2-页面顶部将生成寄存器标记。

3-转到webconfig>>将版本号从line similier复制到此标记:



add assembly =CrystalDecisions.Web,版本 = .......



4 - 在注册标签上粘贴版本号而不是版本。



<%@ Re gister Assembly =CrystalDecisions.Web, Version = ....... ,Culture = neutral,PublicKeyToken = 692fbea5521e1304

Namespace =CrystalDecisions.WebTagPrefix = CR%>


您确定为VS 2010安装了此版本的Crystal报表: Crystal Viewer for VS2010下载 [ ^ ]



如果版本有差异,请尝试使用上面的版本。


< blockquote> hi ..



转到web.config文件

复制水晶报表查看器的版本号

转到放置报告查看器的页面源

使用从web.config复制的版本号更改crystaldecission.web注册行的版本



例如。您的报表查看器页面将具有版本10.0.3600.0的汇编注册行。

将其更改为13.0.2000.0





这将解决问题..


Dear Friends,

I have installed the final version of Crystal Reports for Visual Studio 2010. I created a new ASP.Net project, saved it, closed it, and then came back to it later. I was prompted to convert the project because of an out of date version of Crystal Reports. But I just created the project...how can the version already be out of date? Also, once the conversion is complete the CrystalReportViewers error stating "Unable to cast object of type 'CrystalDecisions.Web.CrystalReportViewer' to type 'CrystalDecisions.Web.CrystalReportViewerBase'. I am using .NET Framework 4.0 for other . How to solve this problem?.please help me.




Thanks,
Ramu

解决方案

i have same problem and i solve it by changing the version number :

steps to the solution :
1- drag and drop your viewer on the page .
2- the register tag will be generated at the top of the page .
3- go to webconfig >> copy the version number from line similier to this tag :

"add assembly="CrystalDecisions.Web, Version=.......

4 - paste the version number instead of the version on the register tag.

"<%@ Register Assembly="CrystalDecisions.Web, Version=......., Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>"


You sure you installed this version of Crystal reports for VS 2010: Crystal Viewer for VS2010 download[^]

Try and use the above one in case there is a difference in version.


hi..

go to web.config file
copy the version number of the crystal report viewer
go to the page source where report viewer is placed
change the version of the crystaldecission.web registration line with the version number copied from web.config

eg. your report viewer page will have assembly register line with version 10.0.3600.0.
change it to 13.0.2000.0


this will solve the issue..


这篇关于无法转换“CrystalDecision.Web.CrystalReportViewer”类型的对象来键入“CrystalDecisions.Web.CrystalReportViewerBase”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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