ADODB!!!

V

Vai2000

I am using a C# Application which uses a 3rd party DLL which returns a
recordset. Unfortunately when I add ADODB.dll to my project reference I get
an error:
Message-Could not load file or assembly 'ADODB, Version=7.0.3300.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.

On probing the dependency I see that ADODB has dependency on mscorlib
1.0.3300.0....
I cannot find the mscorlib in my GAC...what shud I do?

TIA
 
S

Scott M.

You always have an automatic reference to MSCORLIB.dll even though it
doesn't show in the references section of the Solution Explorer. It is the
Microsoft Core Library (MSCORLIB) and, as such, you can't work without it.

ADODB.dll is a COM library, not a .NET library. How are you adding it to
your project? Through the COM References dialog I hope.
If so, VS.NET will create a Runtime Callable Wrapper (RCW) class for it
(which is a .NET assembly) and then you can transparently use that to get to
the underlying ADODB COM library without problems.

-Scott
 
A

Andy

I am using a C# Application which uses a 3rd party DLL which returns a
recordset. Unfortunately when I add ADODB.dll to my project reference I get
an error:
Message-Could not load file or assembly 'ADODB, Version=7.0.3300.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.

On probing the dependency I see that ADODB has dependency on mscorlib
1.0.3300.0....
I cannot find the mscorlib in my GAC...what shud I do?

TIA

Re-install the .Net framework 1.0... mscorlib is the very starting
point of the framework.
 
S

Scott M.

I wouldn't jump to that drastic of a move just yet. If he didn't have
MSCORLIB.dll, then he wouldn't be able to open up anything and compile
anything. Since he can, he must have it.
 
V

Vai2000

sorry ya all, I wasn't able to find mscorlib 1.0.3300.0, reinstalled .net
1.0 and then had 2 manually add the mscorlib to GAC since there .net 2.0 was
already present there
 
S

Scott M.

If you've reinstalled the .NET Framework, then you wouldn't have to
reinstall MS assembly into the GAC. The two different versions of the .NET
Framework that you have don't have anything to do with each other. They
just co-exist.
 
G

Guest

There is already an "adodb" wrapper assembly in the .NET tab - probably
because it is so commonly used in legacy situations. Mine says version 7.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top