Home All Groups Group Topic Archive Search About

Type 'ADODB.Connection' is not defined.

Author
19 Feb 2006 3:03 PM
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



--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
      ------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

Author
19 Feb 2006 4:29 PM
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.


Show quote
"Joe Befumo" <j**@befumo.com> wrote in message
news:43f88600$0$26778$b9f67a60@news.newsdemon.com...
> 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
>
>
>
> --
> Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
>      ------->>>>>>http://www.NewsDemon.com<<<<<<------
> Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

AddThis Social Bookmark Button