Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

Type 'ADODB.Connection' is not defined.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe Befumo - 19 Feb 2006 14:59 GMT
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
Peter Bromberg [C# MVP] - 19 Feb 2006 15:30 GMT
Joe,
"ADODB.Connection" is classic ADO which you would normally use only  with
classic ASP and VBScript. Is there any particular reason why you need to do
this instead of using the ADO.NET managed providers?

Is this some sort of a converted project from Classic ASP?

Peter
Signature

Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com

> I'm getting the following error in my application:
>
[quoted text clipped - 21 lines]
>       ------->>>>>>http://www.NewsDemon.com<<<<<<------
> Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Joe Befumo - 19 Feb 2006 21:21 GMT
Yeah, it was. I ultimately got it working, then learned about the better way
of doing things in Dot.Net, so I converted, successfully.  Thanks.

Joe

> Joe,
> "ADODB.Connection" is classic ADO which you would normally use only  with
[quoted text clipped - 32 lines]
>>       ------->>>>>>http://www.NewsDemon.com<<<<<<------
>> Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
sloan - 19 Feb 2006 17:02 GMT
Joe,

While it may not make supersense this moment, ADODB has been utterly
abandoned in DotNet.

The only time one might use them, is to talk to some legacy code.

The "new kids on the block" are the
DataSet
IDataReader

Do a google for DataSet IDataReader ADODB and read up.
Here is a decent one.

http://www.simple-talk.com/2005/06/10/adonet-data-access/

> I'm getting the following error in my application:
>
[quoted text clipped - 21 lines]
>       ------->>>>>>http://www.NewsDemon.com<<<<<<------
> Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.