Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with Microsoft VBScript runtime (0x800A01FA) 1

Status
Not open for further replies.

mrsbean

Technical User
Jul 14, 2004
203
US
I have an asp script that I'm trying to get working on a new server. I don't know asp very well, and I'm having troubles.

The error:

Error Type:
Microsoft VBScript runtime (0x800A01FA)
Class not defined: 'ADODB'
(snipped).../includes/commonlib/common.asp, line 210

The code:

Code:
Dim bBrwoser , DbConn, popApp
    Set DbConn = Server.CreateObject("ADODB.Connection")
***THIS IS LINE 210***        DbConn = new ADODB.Connection 
        strCS = "Provider=SQLOLEDB.1;Password=password;Persist Security Info=True;User ID=mydbid;Initial Catalog=mydb;Data Source=xxx.xxx.xxx.xxx"
        DbConn.Open strCS
        bBrwoser = BrowserTest( Request.ServerVariables("HTTP_USER_AGENT") )
            Img = IIF(bBrwoser,"leftbarbody_IE","leftbarbody")

Previously, this section of code included a VBScript. I took out the VBScript (it wasn't working on the new server anyway), and tried something else. All suggestions are most welcome.

MrsBean

 
remove this line:

DbConn = new ADODB.Connection

you dont need it...

-DNG
 
Thanks ... so close and yet so far away.

MrsBean
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top