microsoft VBscript/ activeX error

chrisb4745

Junior Member
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=&quot;VBSCRIPT&quot;%> <%
set Recordset1 = Server.CreateObject(&quot;ADODB.Recordset&quot;)
Recordset1.ActiveConnection = &quot;dsn=team&quot;
Recordset1.Source = &quot;SELECT team, name FROM teams ORDER BY team ASC&quot;
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 = &quot;&amp;index=&quot;
If (MM_paramName <> &quot;&quot;) Then MM_removeList = MM_removeList &amp; &quot;&amp;&quot; &amp; MM_paramName &amp; &quot;=&quot;
MM_keepURL=&quot;&quot;:MM_keepForm=&quot;&quot;:MM_keepBoth=&quot;&quot;:MM_keepNone=&quot;&quot;

' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = &quot;&amp;&quot; &amp; Item &amp; &quot;=&quot;
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL &amp; NextItem &amp; Server.URLencode(Request.QueryString(Item))
End If
Next

' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = &quot;&amp;&quot; &amp; Item &amp; &quot;=&quot;
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm &amp; NextItem &amp; Server.URLencode(Request.Form(Item))
End If
Next

' create the Form + URL string and remove the intial '&amp;' from each of the strings
MM_keepBoth = MM_keepURL &amp; MM_keepForm
if (MM_keepBoth <> &quot;&quot;) Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
if (MM_keepURL <> &quot;&quot;) Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> &quot;&quot;) 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 <> &quot;&quot;) Then
MM_joinChar = &quot;&amp;&quot;
Else
MM_joinChar = &quot;&quot;
End If
End Function
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>
<body bgcolor=&quot;#FFFFFF&quot;>
<div align=&quot;center&quot;>
<table width=&quot;84%&quot; border=&quot;1&quot; bordercolorlight=&quot;#FF9900&quot; bordercolordark=&quot;#FF9900&quot; cellpadding=&quot;5&quot;>
<tr>
<td height=&quot;61&quot; colspan=&quot;2&quot;>
<div align=&quot;center&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;+3&quot;>Complete
List of Team Sites</font></div>
</td>
</tr>
<tr>
<td height=&quot;382&quot; width=&quot;23%&quot; valign=&quot;top&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot;>Find
the team you would like to view to the right, and then click on the 3
character team designation</font></td>
<td height=&quot;382&quot; width=&quot;77%&quot; valign=&quot;top&quot;>
<div align=&quot;center&quot;>
<table width=&quot;91%&quot; border=&quot;1&quot; bordercolorlight=&quot;#FFFFFF&quot; bordercolordark=&quot;#CCCCCC&quot;>
<tr>
<td height=&quot;28&quot; width=&quot;18%&quot;><b><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;+1&quot;>Team</font></b></td>
<td height=&quot;28&quot; width=&quot;82%&quot;><b><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;+1&quot;>Name</font></b></td>
</tr>
</table>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<table width=&quot;91%&quot; border=&quot;1&quot; bordercolorlight=&quot;#FFFFFF&quot; bordercolordark=&quot;#FF9900&quot; bordercolor=&quot;#CCCCCC&quot; bgcolor=&quot;#FFFFFF&quot;>
<tr>
<td width=&quot;18%&quot; height=&quot;28&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot;><A HREF=&quot;detail.asp?<%= MM_keepNone &amp; MM_joinChar(MM_keepNone) &amp; &quot;team=&quot; &amp; Recordset1.Fields.Item(&quot;team&quot;).Value %>&quot;><%=(Recordset1.Fields.Item(&quot;team&quot;).Value)%></A></font></td>
<td width=&quot;82%&quot; height=&quot;28&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot;><%=(Recordset1.Fields.Item(&quot;name&quot;).Value)%></font></td>
</tr>
</table>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%> </div>
<p align=&quot;center&quot;>&amp;nbsp;</p>
</td>
</tr>
</table>
</div>
</body>
</html>

 

Train

Lifer
Jun 22, 2000
13,599
90
91
www.bing.com
Try this instead of your first code block

<%
Dim AdoConn
Dim Recordset1

Set AdoConn = Server.CreaterObject(&quot;Adodb.Connection&quot;)
Set Recordset1 = Server.CreateObject(&quot;ADODB.Recordset&quot;)
AdoConn.Open &quot;DSN=Team&quot;
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open &quot;SELECT team, name FROM teams ORDER BY team ASC&quot;, AdoConn
%>

 

sun818

Golden Member
Jul 11, 2000
1,147
0
0
Your World Wide Web service on the server may be down. Confirm and Start if necessary.