Type 'ADODB.Connection' is not defined.

J

Joe Befumo

I'm getting the following error in my application:

Compiler Error Message: BC30002: Type 'ADODB.Connection' is not defined.

Source Error:



Line 112: if(Request.Form("HdnQuestionCount") = 0) thenLine 113:Line 114:
Dim objDataConn as ADODB.ConnectionLine 115: Dim objRSList as
ADODB.RecordSetLine 116: dim iRecordCount as integer



I've tried running gacutil.exe /I adodb, but get the following error:



Failure adding assembly to the cache: The system cannot find the file
specified.



Any suggestions would be appreciated.



Thanks.



Joe
 
S

Scott M.

The ADO Library is not part of the .NET Framework. Its code can not be
registered into the GAC as only .NET (managed) assemblies can be. The new
data objects are called ADO.NET and consist of objects in the System.Data
namespace.

If you need to use any of the ADO objects, you'll need to make a COM
reference to the ADO assembly.
 

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