Solved

File or assembly name ADODB or one of it's dependencies was not found.

Posted on 2003-11-07
3
2,042 Views
Last Modified: 2013-12-25
I created a simple VB.NET program that uses the ADODB.DLL to connect to an access database.  It works great, until I copy the EXE to another PC.  It then gives the message:

"File or assembly name ADODB or one of it's dependencies was not found."

The DLL is not located on the target computer, although the .NET framework is installed.  I've tried copying the DLL to the Winnt\System32 directory, but to no avail.  

How can I fix this problem?

Thanks,

ssteeves
0
Comment
Question by:ssteeves
3 Comments
 
LVL 1

Expert Comment

by:KeyPakt
ID: 9700660
I'm pretty sure that you must register the ADODB.dll on the other computer. Just make a small install package and run on the other machine and it shall work.
0
 
LVL 1

Author Comment

by:ssteeves
ID: 9700756
I will try that, but I'm also trying to avoid using a setup program.  We have  300 computers to deploy this type of programs on.  What we want to to have the PC configure itself automatically.  We have a script that can copy the DLL to the computer and register it if needed.

For a test, we tried registering the ADODB.DLL control on the PC manually, and we got this message:

"C:\Winnt\System32\Adodb.dll was loaded, but the DllRegisterServer entry point was not found.

DLLRegisterServer may not be exported, or a corrupt version of C:\Winnt\System32\Adodb.dll may be in memory.  Consider using Pview to detect and remove it."

And suggestions based on this?

ssteeves
0
 
LVL 29

Accepted Solution

by:
leonstryker earned 250 total points
ID: 9700762
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

706 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

16 Experts available now in Live!

Get 1:1 Help Now