- Nov 21, 2000
- 1
- 0
- 0
we are running Windows N4. when whe try to establish a database connection from an .asp webpage we get the following error message:
Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object
/team/results.asp, line 2
this happens with EVERY page on the system, even sample pages.
below is all the code up to where the html begins:
ANY help is greatly appreciated,
thanks !!!
<%@LANGUAGE="VBSCRIPT"%> <%
set Recordset1 = Server.CreateObject("ADODB.Recordset"
Recordset1.ActiveConnection = "dsn=team"
Recordset1.Source = "SELECT team, name FROM teams ORDER BY team ASC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open
Recordset1_numRows = 0
%><%
Dim Repeat1__numRows
Repeat1__numRows = -1
Dim Repeat1__index
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%> <%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> ""
Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item))
End If
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
if (MM_keepBoth <> ""
Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
if (MM_keepURL <> ""
Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> ""
Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> ""
Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<div align="center">
<table width="84%" border="1" bordercolorlight="#FF9900" bordercolordark="#FF9900" cellpadding="5">
<tr>
<td height="61" colspan="2">
<div align="center"><font face="Arial, Helvetica, sans-serif" size="+3">Complete
List of Team Sites</font></div>
</td>
</tr>
<tr>
<td height="382" width="23%" valign="top"><font face="Arial, Helvetica, sans-serif">Find
the team you would like to view to the right, and then click on the 3
character team designation</font></td>
<td height="382" width="77%" valign="top">
<div align="center">
<table width="91%" border="1" bordercolorlight="#FFFFFF" bordercolordark="#CCCCCC">
<tr>
<td height="28" width="18%"><b><font face="Arial, Helvetica, sans-serif" size="+1">Team</font></b></td>
<td height="28" width="82%"><b><font face="Arial, Helvetica, sans-serif" size="+1">Name</font></b></td>
</tr>
</table>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<table width="91%" border="1" bordercolorlight="#FFFFFF" bordercolordark="#FF9900" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
<tr>
<td width="18%" height="28"><font face="Arial, Helvetica, sans-serif"><A HREF="detail.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "team=" & Recordset1.Fields.Item("team"
.Value %>"><%=(Recordset1.Fields.Item("team"
.Value)%></A></font></td>
<td width="82%" height="28"><font face="Arial, Helvetica, sans-serif"><%=(Recordset1.Fields.Item("name"
.Value)%></font></td>
</tr>
</table>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%> </div>
<p align="center">&nbsp;</p>
</td>
</tr>
</table>
</div>
</body>
</html>
Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object
/team/results.asp, line 2
this happens with EVERY page on the system, even sample pages.
below is all the code up to where the html begins:
ANY help is greatly appreciated,
thanks !!!
<%@LANGUAGE="VBSCRIPT"%> <%
set Recordset1 = Server.CreateObject("ADODB.Recordset"
Recordset1.ActiveConnection = "dsn=team"
Recordset1.Source = "SELECT team, name FROM teams ORDER BY team ASC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open
Recordset1_numRows = 0
%><%
Dim Repeat1__numRows
Repeat1__numRows = -1
Dim Repeat1__index
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%> <%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> ""
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item))
End If
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
if (MM_keepBoth <> ""
if (MM_keepURL <> ""
if (MM_keepForm <> ""
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> ""
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<div align="center">
<table width="84%" border="1" bordercolorlight="#FF9900" bordercolordark="#FF9900" cellpadding="5">
<tr>
<td height="61" colspan="2">
<div align="center"><font face="Arial, Helvetica, sans-serif" size="+3">Complete
List of Team Sites</font></div>
</td>
</tr>
<tr>
<td height="382" width="23%" valign="top"><font face="Arial, Helvetica, sans-serif">Find
the team you would like to view to the right, and then click on the 3
character team designation</font></td>
<td height="382" width="77%" valign="top">
<div align="center">
<table width="91%" border="1" bordercolorlight="#FFFFFF" bordercolordark="#CCCCCC">
<tr>
<td height="28" width="18%"><b><font face="Arial, Helvetica, sans-serif" size="+1">Team</font></b></td>
<td height="28" width="82%"><b><font face="Arial, Helvetica, sans-serif" size="+1">Name</font></b></td>
</tr>
</table>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<table width="91%" border="1" bordercolorlight="#FFFFFF" bordercolordark="#FF9900" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
<tr>
<td width="18%" height="28"><font face="Arial, Helvetica, sans-serif"><A HREF="detail.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "team=" & Recordset1.Fields.Item("team"
<td width="82%" height="28"><font face="Arial, Helvetica, sans-serif"><%=(Recordset1.Fields.Item("name"
</tr>
</table>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%> </div>
<p align="center">&nbsp;</p>
</td>
</tr>
</table>
</div>
</body>
</html>
