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:
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
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