Solved

Converting VS 205 APP with Crystal reports to VS 2008

Posted on 2011-09-28
7
455 Views
Last Modified: 2013-12-17
Hello Experts,

I have a VS 2005 C# APP which uses Crystal Reports for Visual Studio 2005 and am converting it to VS 2008.

1. I converted the VS 2005 APP to VS 2008 on my Win &, 64 bit VS 2008 machine
2. I ran CRRedist2008_x64.msi  on myWin &, 64 bit VS 2008 machine
3. I notice that my project still references Crysatal dlls at C:\Program Files (x86)\Business Objects\Common\2.8\managed
4. I cannot find similar dlls for the 2008 versions on the computer to change the references

Am still getting Cryustal errors (see codesnipet) and the converted project will not build.

Does anyone know what I am doing wrong here??

Thanks!

I still get Crystal reports errors (see code snippet) and the APP won't build.

I notice that
Error	1	Custom tool error: "Code generator 'ReportCodeGenerator' failed.  Exception stack = CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException (0x8000020D): Unable to load report.
   at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
   --- End of inner exception stack trace ---
   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
   at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
   at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"	C:\TEmp_EHArvest Apps\APP_FullCLR_Final_64\Cape_Horn_1-2011_UPInnova\Groundfish_EH_Constellation_2008\avgWtsByVesselCodend.rpt	1	1	WhitingLog2005
Error	2	Custom tool error: Failed to generate code. Data at the root level is invalid. Line 1, position 1.	C:\TEmp_EHArvest Apps\APP_FullCLR_Final_64\Cape_Horn_1-2011_UPInnova\Groundfish_EH_Constellation_2008\GroundFish_DevDataSet1.xsd	1	1	WhitingLog2005
Error	3	Custom tool error: "Code generator 'ReportCodeGenerator' failed.  Exception stack = CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException (0x8000020D): Unable to load report.
   at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
   --- End of inner exception stack trace ---
   at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
   at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
   at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"	C:\TEmp_EHArvest Apps\APP_FullCLR_Final_64\Cape_Horn_1-2011_UPInnova\Groundfish_EH_Constellation_2008\spPcntRetention.rpt	1	1	WhitingLog2005
Error	4	Custom tool error: Failed to generate code. Unable to find connection 'GroundFish_DevConnectionString (Settings)1' for object 'Settings'. The connection string could not be found in application settings, or the data provider associated with the connection string could not be loaded	C:\TEmp_EHArvest Apps\APP_FullCLR_Final_64\Cape_Horn_1-2011_UPInnova\Groundfish_EH_Constellation_2008\GroundFish_DevDataSet.xsd	1	1	WhitingLog2005

Open in new window

0
Comment
Question by:Saxitalis
  • 4
  • 2
7 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 total points
Comment Utility
Are you building on a 32 or 64 bit machine?

mlmcc
0
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 250 total points
Comment Utility
What is the target platform for the build?  Are you targeting Mixed Platform, x64, Any CPU, or x86?
0
 

Author Comment

by:Saxitalis
Comment Utility
Any CPU
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
What happens if you create a new report in 2008?
0
 

Author Comment

by:Saxitalis
Comment Utility
I'll try and get back...
0
 

Author Comment

by:Saxitalis
Comment Utility
I went back and ran the Crystal REports msi X64 and got it to work but trhanks for your replies!
0
 

Author Closing Comment

by:Saxitalis
Comment Utility
I figured out the problem on my own but want to award points for valid answers
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now