使用Crystal Reports for VS 2003开发的项目无法转换为VS 2005 [英] Project developed with Crystal Reports for VS 2003 does not convert to VS 2005

查看:48
本文介绍了使用Crystal Reports for VS 2003开发的项目无法转换为VS 2005的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio转换向导将VS 2003项目转换为VS 2005

构建转换项目时出现以下2个错误:

类型"CrystalDecisions.Enterprise.InfoObject"在未引用的程序集中定义。您必须添加对程序集"CrystalDecisions.Enterprise.InfoStore,Version = 10.2.3600.0,Culture = neutral,PublicKeyToken = 692fbea5521e1304"的引用。

类型"CrystalDecisions.Enterprise.EnterpriseSession"在未引用的程序集中定义。您必须添加对程序集"CrystalDecisions.Enterprise.Framework,Version = 10.2.3600.0,Culture = neutral,PublicKeyToken = 692fbea5521e1304"的引用。

这里有更多背景:

1这些程序集不会出现在VS 2005添加引用对话框中,因此我无法添加对项目的引用。

2)对于它的价值,这些程序集的版本9.1.5000.1 出现在VS 2003添加引用对话框中,但是VS 2003项目(工作正常)没有包含对任何一个的引用。在其他工作中,我可以将这些引用添加到VS 2003项目中;但不需要它们。

2) For what it is worth, Version 9.1.5000.1 of these assemblies do appear in the VS 2003 Add Reference Dialog, however the VS 2003 project (which works fine) did not include references to either one. In other works, I could have added those references to the VS 2003 project; but they weren’t needed.

3)VS 2003项目具有完全相同的CrystalDecisions引用作为转换的VS 2005项目(版本= 9.1.5000.1而不是版本= 10.2.3600.0除外)。即:

- CrystalDecisions.CrystalReports.Engine

 - CrystalDecisions.CrystalReports.Engine

- CrystalDecisions.ReportSource

 - CrystalDecisions.ReportSource

- CrystalDecisions.Shared

 - CrystalDecisions.Shared

< font face ="Geneva,Arial,Sans-serif"> - CrystalDecisions.Web

 - CrystalDecisions.Web

4)错误消息中详述的程序集确实出现在GAC中。我在Assembly Cache Viewer中看到它们;但我不明白如何让VS 2005项目引用它们。

5 )以下是导致错误的行:"crReportDocument.Load(reportPath + invoiceName,CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy);"(crReportDocument是ReportDocument类的实例)

我有这种下沉的感觉,我在Crystal Reports for Visual Studio 2003中使用的功能在VS 2005中不存在。

有什么建议吗?

推荐答案

我有一个类似的问题。当我将我的解决方案从VS2003转换为VS2005时,还有额外的"添加组件"。引用已添加到我的web.config中,因此我注册了多个版本的Crystal报表。我只需要注释掉旧版本以获得我的编译解决方案。

- Ken
I had a similiar problem.  When I converted my solution from VS2003 to VS2005 there were additional "add assembly" references added to my web.config, so I had multiple versions of Crystal reports registered.  I simply had to comment out the older versions to get my solution to compile.

-- Ken


这篇关于使用Crystal Reports for VS 2003开发的项目无法转换为VS 2005的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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