Current Position:Home > Crystal reports 2010:Failed to load database information

Crystal reports 2010:Failed to load database information

Update:11-30Source: network consolidation
Hi guys,
I had a project with crystal reports 2010 for the reporting.The report works fine inside vs 2010.I tried to build an installer for my project using 'Advanced installer'. In Advanced installer there's an option to import the run time engine for crystal reports for .net framework 4.0 which is 'CR Run time 64bit 13_0_1' but since my system and other target systems are 32 bit,I figured to also import the 32-bit version.
But first when i followed the path for the package there was nothing so i downloaded both 32 and 64 bit run time engine then located them i that path.
Just for the information,when i installed crystal reports on my PC,i think it installed 'Crystal Reports for visual studio'
So i built the installer and installed it on my PC but when it try to view the report it crashes.I also try to install it on another PC and it throws this exception:
CrystalDecisions.CrystalReports.Engine.DataSourceException: Failed to load database information.
Error in File CrystalReport6 {566E2F0C-8C45-4647-8017-15BD6DB1F195}.rpt:
Failed to load database information. ---> System.Runtime.InteropServices.COMException: Failed to load database information.
Error in File CrystalReport6 {566E2F0C-8C45-4647-8017-15BD6DB1F195}.rpt:
Failed to load database information.
   at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault)
   at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)
What am i missing?

The Best Answer

You have two distinct issue here - one on your dev computer and an unrelated on on the deployed computer.
First your deployment project.
You have to decide how you want to compile the app; 32 bit, or 64 bit?
For 32 bit app, use the 32 bit msm file
For 64 bit app use the 64 bit msm file
Next, you are using Service Pack 1, current SP is #9, so update both your CRVS install (using the install exe) and the deployment project with the correct msm. Links to the msm files and the install exe are in this doc:
SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
Once you have SP 9 installed, recompile your app making sure it still runs. Then build your deployment project and deploy. See what happens then...
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter