Skip to Content
0
Former Member
Mar 19, 2014 at 04:02 PM

Failed to load database information. Error in {GUID}.rpt

726 Views

Hi

I have a C# windows service that load a rpt file and export it to PDF

I am required to use XML as data source for the rpt file, and in the IDE of CR 2013 it always works fine via local XML file, and also I create a http/https pages which returns a XML stream, it still works, preview fine.

And then I debug into my unit test project, load the rpt file, set the necessary parameters, and at last call the ReportDocument.Export(), the PDF was generated successfully.

But when I deploy the windows service in my local machine, it always throw out an exception with the error message of “Failed to load database information. Error in {GUID}.rpt” at ReportDocument.Export().

Here is the environment of my local machine:

Windows 7 (64 bit)

NET framework 4.0 / VS2010 build with “Any CPU”

CR2013 with the latest run-time packages for VS

I also have crdb_xml.dll in both of the following paths:

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86

I doubt that I missed something in my environment, is there any suggestions? Thanks a lot!