Error: not found file or assembly ADODB...

Joined
Mar 7, 2012
Messages
2
Location
Sao Paulo, Brazil, Brazil
Programming Experience
5-10
After finish my software, when I was try to run in other computer the error was:

Don't possible to get the file or assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f711d50a3a'...

How the best solution for this error? Just to put the last adodb.dll in the application folder?
 
The best solution is to not use ADO in the first place. You're using .NET so you should be using .NET, which means ADO.NET for data access.

If you must use old COM technology then, in this case, I think that you should be OK to just copy the DLL. Try setting the Copy Local property of that reference to True and rebuilding and you should find that DLL in your output folder with your EXE.
 
The DLL you have to copy is the ADODB.Interop.dll file, which references the correct typelib which in turns reference the actual ADO library... The msado15.dll and its corresponding typelibs are installed as part of the MDAC package, which is baseline with Windows Vista and up.
 
Back
Top