Skip to Content
author's profile photo Former Member
Former Member

The database DLL 'crdb_p2bbtrv.dll' could not be loaded.

I'm using Visual Studio 2008 to develop an ASP.NET application to display reports created using Crystal Reports XI.

We currently have a working VB6 application that employees use to launch reports written in Crystal Reports XI. My task is to rewrite the user interface using Visual Studio 2008 in ASP.NET and provide the reports on our company ASP.NET portal.

The reports that need to be launched are all existing reports written in XI. There is no VB code that defines data connection; it just launches the report in a report viewer.

Here is the VB 6 code:

Set CrystalApplication = CreateObject("CrystalRuntime.Application.9")

Set CrystalReport = CrystalApplication.OpenReport(grsReports!ReportFile)

crViewer.ReportSource = CrystalReport


Very simple!

Now this should be simple to reproduce in ASP.NET page; 30min top.

Dim crystalReport As New ReportDocument()


CrystalReportViewer1.ReportSource = crystalReport

I created the page threw it up on the server and everything looks fine. When the user selects a report they are presented with a box that says enter values. They enter the date range and select OK. Then BOOMB!

The error message u2013 u201CFailed to load database information. Details: The database DLL 'crdb_p2bbtrv.dll' could not be loaded. Error in File C:WINDOWSTEMPvoucher reprint by voucher {AE5F62B2-1704-428D-8DCD-4BD83001BF49}.rpt: Failed to load database information.u201D

When I open the report in Crystal it works just fine and I dont get any errors, even on the server

I installed process monitor on the server

1. I've deployed the CRRedist2008_x86.msi (BootStrapper) on the server.

2. Installed Crystal Report XI on the server

3. Installed pervasive PSQL

I folllowed the SAP links.

Install the Btrieve database engine on the system with the Visual Studio .NET application. How do I do that?

Thank you

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    Posted on Sep 20, 2010 at 09:29 PM

    Hello Larry,

    Crystal Report Xi is not tested over VS2008.

    For more info please check [Crystal Reports XI for Windows - Supported Platform Info|]

    For creating the application using VS2008 you will have to use CR2008 SP2 and above only

    For more info please check [Crystal Reports 2008 Service Pack 2 for Windows - Supported Platform Info|]



    Add comment
    10|10000 characters needed characters exceeded

    • Hi Larry,

      The problem is you originally used the CR Basic version which is included with VS 2008, cr version is 10.5. So what you are doing is going backwards in CR runtime version.

      Next problem is CR Basic for VS 2008 does not include the native Btrieve driver and the one included in the XI runtime will not work in VS 2008. VS 2008 and CR basic only supports the basic ODBC, OLE DB and few others drivers...

      When you downloaded the trial version of CR 2008 use Service Pack 3 full version and rebuild your app with the updated 12.3.x.x runtime, 12.0.1100.x and 12.0.2000.x assembly versions. And when you do install CR 2008 SP 3 select the custom option to manually select the native btrieve/pervasive driver, it's not installed by default. Now your application will spefifically look for CR 2008 rutime, if you don't update by rebuilding the app it will continue to use the 10.5 runtime.

      Now when you build your deployment package also use the Service Pack 3 Redist MSI package, it will include the native driver.

      If you don't purchase CR 2008 your license will run out in a month and your users will not be able to continue using your app.

      If you don't upgrade your only option is to convert your reports to ODBC and then verify you are not using any CR XI specific features, they won't work in CR 10.5 runtime.

      Hope this clears it all up for you?

      Thank you