问题描述
我正在尝试在 ASP.NET 3.5 应用程序中添加水晶报表查看器,但它给了我这个错误.
I am trying to add crystal report viewer in ASP.NET 3.5 application, but its giving me this error.
CrystalDecisions.Enterprise.EnterpriseSession"类型在未引用的程序集中定义.您必须添加对程序集CrystalDecisions.Enterprise.Framework, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"的引用.
The type 'CrystalDecisions.Enterprise.EnterpriseSession' is defined in an assembly that is not referenced. You must add a reference to assembly 'CrystalDecisions.Enterprise.Framework, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'.
我已经在程序集标签下的 web.config 文件中添加了这个,也添加了参考.但是还是报这个错误.
I have added this in web.config file under assemblies tag, added reference also. But still giving this error.
有什么想法吗??
谢谢.
推荐答案
您是否将 Crystal Report Viewer 控件从工具箱拖到您的网页中?如果没有,请尝试这样做.Visual Studio 通常可以很好地找到所有适当的引用并在您这样做时添加它们.
Did you drag the Crystal Report Viewer control from the toolbox to your web page? If not, try doing it that way. Visual Studio is usually good to find all the appropriate references and add them when you do things that way.
除此之外,您可能需要在 web.config 中添加一些额外的库.在我使用 Crystal 的应用程序中,我引用了以下文件:
Aside from that, you may need to add some additional libraries to your web.config. In my apps using Crystal, I have the following files referenced:
<assemblies>
<add assembly="CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Shared, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Framework, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Viewing.ReportSource, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</assemblies>
另外,就在关闭system.web标签之前,我还添加了以下httpHandler:
In addition, just before the closing system.web tag, I also have the following httpHandler added:
<httpHandlers>
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</httpHandlers>
我的应用程序使用的是 Crystal Reports 11r2 版本,因此一些库可能存在也可能不存在,但大部分是相同的.
My app is using version 11r2 of Crystal Reports, so a few of the libraries may or may not exist, but most of them are the same.
这篇关于ASP.NET3.5 中的水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)