
December 12th, 2003, 04:54 PM
|
|
webgeek
|
|
Join Date: Sep 2002
Location: Dallas, TX, USA
Posts: 120
Time spent in forums: 3 m 17 sec
Reputation Power: 7
|
|
|
Global.ASA difficulties
I use this stock global.asa file to track open sessions on my application. It worked flawlessly on my old server, now my new server gives object errors on
Both are W2000AS SP3. I don't know enough about the global.asa file to trouble shoot. Can someone figure it out?
Quote:
<object runat="Server" scope="Application"
id="rstActiveUsers" progid="ADODB.Recordset">
</object>
<script language="VBScript" runat="Server">
' The first thing you should notice is the top line.
' It creates an application scoped recordset object
' named rstActiveUsers that I'll use to store all
' our user information.
Sub Application_OnStart()
' Selected constants from adovbs.inc
Const adInteger = 3
Const adVarChar = 200
Const adDate = 7
' Here I set up in memory active user recordset
' by adding the fields I want to it and defining
' their data types.
rstActiveUsers.Fields.Append "id", adInteger
rstActiveUsers.Fields.Append "ip", adVarChar, 15
rstActiveUsers.Fields.Append "browser", adVarChar, 255
rstActiveUsers.Fields.Append "started", adDate
code continues.. |
The error looks like this:
Object required: 'rstActiveUsers'
/charms/show_users.asp, line 2
I thought that was declared in the object tag above.
Someone suggested to check my version of ADO, and I don't where to check for that.
Thanks in advance.
|