VS 2010中的Crystal Reports问题 [英] Crystal Reports Problem in VS 2010

查看:142
本文介绍了VS 2010中的Crystal Reports问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们

我正在使用Visual Studio 2010和框架4.我已经从网上下载了2010年的SAP水晶报告。我已安装它,我在设计时收到报告。当我尝试查看报告时,我收到的错误为:

Dear Friends
I am using Visual Studio 2010 with the framework 4. I have downloaded the SAP crystal report for 2010 from web. I have installed it and i am getting the report while designing. When i try to view the report i am getting the error as :

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 
Parser Error Message: The base class includes the field 'CrystalReportViewer1', but its type (CrystalDecisions.Web.CrystalReportViewer) is not compatible with the type of control (CrystalDecisions.Web.CrystalReportViewer). 
Source Error: 

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

 <CR:CrystalReportViewer ID="CrystalReportViewer1"  runat="server" AutoDataBind="true"
     DisplayGroupTree="False" EnableDatabaseLogonPrompt="False" 
    EnableParameterPrompt="False" 
    ReuseParameterValuesOnRefresh="True" 
    ReportSourceID="CrystalReportSource1" />
   
    <CR:CrystalReportSource ID="CrystalReportSource1"  runat="server">
    


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.208 . 



任何人都可以帮我解决这个问题吗?在此先感谢..



谢谢,

Sampath Bejugama


Can any one help me in solving this issue? Thanks in advance..

Thanks,
Sampath Bejugama

推荐答案





有很多人在使用Crystal Report for VS 2010时遇到过这种问题。根据你的错误信息,检查以下内容:



1.确保您的系统上只安装了一个CR版本。卸载您的计算机上可能存在的任何旧版本。



2.下载正确的CR版本。由于您使用的是VS 2010,因此需要参考

http:// downloads。 businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0_1.zip [ ^ ]

(适用于64位机器)或

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_1.zip [ ^ ](对于32位机器)。



3.确保在根文件夹上设置FULL TRUST权限



4.本地服务必须在您的应用程序池上设置权限



5.确保根文件夹中存在aspnet_client文件夹。



如果你按照上面的步骤行事......你应该好好去......一切顺利。
Hi,

There are many who are facing this kind of issue with Crystal Report for VS 2010. Based on the error message you had, check following things:

1. Make sure you just have one CR version installed on your system. Uninstall any old version taht you may have on your machine.

2. Download the correct CR version. Since you are using VS 2010, you need to refer to
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0_1.zip[^]
(for 64 bit machine) or
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_1.zip[^] (for 32 bit machine).

3. Make sure you setup FULL TRUST permission on your root folder

4. The LOCAL SERVICE permission must be setup on your application pool

5. Make sure the aspnet_client folder exists on your root folder.

If you follow the above steps..you should be good to go...all the best.


删除以前的登记指令



并使用这个



]]>
REMOVE PREVIOUS REGISTER DIRECTIVE

AND USE THIS

]]>


这是CrystalReportViewer版本问题

首先删除所有crystalreport dll并从

web.config中删除所有水晶报告引用,其中包含类似'10 .5.3700.0'的版本

现在添加13版本的dll。 br />
现在在aspx页面上添加控件如果aspx页面上还有引用,例如

'
It is CrystalReportViewer version problem
First remove all crystalreport dlls and remove all crystal report references from
web.config which contain version like '10.5.3700.0'
now add dll with 13 version.
now add control on aspx page if there is reference remaining on aspx page like
'
<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"

    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>



'然后更改为



'


' then change it like

'

<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" 

'



来自web config的复制版本其中包含'13。 。 。 '并粘贴到aspx页面参考标签



它将起作用。

'

copy version from web config which contain '13. . . ' and paste in aspx page reference tag

it will work .


这篇关于VS 2010中的Crystal Reports问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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