【发布时间】:2012-03-17 10:16:06
【问题描述】:
我安装了 VS-2005 和 VS-2010。由于 Crystal Reports 可作为 VS-2010 的单独下载,我下载并安装了它。我的旧项目在使用 Crystal Reports 10.0 版的 VS-2010 中。新项目在 VS-2010 中,Crystal Reports 版本为 13.0。
我在 VS-2010 中做了一个带有单个报告的小应用程序。当我尝试运行这个项目时,它显示错误:
The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\10.2.3600.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Web.dll'
The indirectly-referenced assembly 'BusinessObjects.Licensing.KeycodeDecoder, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be found. This assembly is not required for analysis, however, analysis results could be incomplete. This assembly was referenced by: C:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll.
我无法卸载旧版 Crystal Reports(即版本 10)。如何使这些并行工作以及需要在 GAC 和 web.config 文件中进行哪些更改。
【问题讨论】:
-
我也遇到了同样的错误,我要做的就是删除引用并从 bin 文件夹中删除水晶报表 dll...然后添加对水晶报表引擎 13.0 的引用
标签: visual-studio-2010 crystal-reports crystal-reports-10