Solved

database DLL 'crdb_dao.dll' could not be loaded

Posted on 2007-11-19
7
2,917 Views
Last Modified: 2008-02-01
I created a report in Crystal Reports 9 and coded a VB6 app to display it in the CR viewer. Everything was working fine until I packaged the application using the package and deployment wizard. I did a test install and now, when I try to call the report in VB6, I get the message "database DLL 'crdb_dao.dll' could not be loaded". What is causing this? The message appears when attempting to Access from running from VB6 itself and when running the installed app. It also de-registered one of my ct active x ocx objects. The crdb_dao.dll file is in the directory 'C:\program files\crystal decisions\2.0\bin' folder. Also, is it possible for the crystal report viewer to work within my app, even if a pc it is installed on doesn't have CR installed?
0
Comment
Question by:fuerteventura
  • 4
  • 3
7 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 20317559
>>Also, is it possible for the crystal report viewer to work within my app, even if a pc it is installed on doesn't have CR installed?
Yes.  You will have to create an installation package that has all the required dlls including the database dlls.

Did you try the install on your machine?

mlmcc
0
 

Author Comment

by:fuerteventura
ID: 20318491
Yes - I installed it on the machine that I'm developing it on - the one with Crystal Installed
0
 

Author Comment

by:fuerteventura
ID: 20318704
Update - re-installing CR9 Pro edition solved the problem and it works again. However, I re-packaged my application and this time added the crdb_dao.dll file to the package. THis time when it installed, I got the message "database DLL 'querybuilder.dll' could not be loaded". This file is part of the installation package. Once again, re-installing CR9 solved the problem.  Bear in mind I only have the pro edition. Could this be the reason as I know the developer edition has the licence I require to distribute?
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 100

Expert Comment

by:mlmcc
ID: 20325555
Yes, the pro edition doesn't have the license you need to be able to distribute.  By installing Crystal you are using that license on the machine.

mlmcc
0
 

Author Comment

by:fuerteventura
ID: 20326555
Many thanks for your reply. I have just got around the proble by stripping out all of the reference to Crystal, with the exception of the 2 I need (which I now know are CRAXDR9.DLL  and CRViewer9.DLL). In addition to this I ensure that the installer places the other required DLLs (Which in this case are the crdb_***.dll and querybuilder.DLL) in the Program Files/Common Files/Crystal Decisions/2.0/Bin folder).
This allowed it to install fine after creating a package using the PDW. However, it only installs on the machine with CR9 on. On other machines, it falls over during the installation - specifically at the end when the installer states that it is updating the system. So one last question - would I be right to assume that the installation failing is due to that machine not having crystal installed and purchasing a developer version will solve the problem? Cheers again.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 20330695
It is probably failing because you don't have a license to distribute.

BUying/upgrading to the developer edition should resolve the issue.

mlmcc
0
 

Author Comment

by:fuerteventura
ID: 20333351
Many thanks for all your help & advice.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Run code from text file in vb 1 64
Mask on Parameter CR2008 28 51
Macro Excel - Multiple If conditions 2 71
How to modify the SQL query in Crystal 2016 1 20
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

813 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

8 Experts available now in Live!

Get 1:1 Help Now