Forum Moderators: open
Both are W2000AS SP3. I don't know enough about the global.asa file to trouble shoot. Can someone figure it out?
<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", adDatecode 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.
Good Luck
tx - it almost sounds like the global.asa isn't firing. You have it in your application root, correct? Also, make sure the permissions are set correctly (it needs to be accessible by your IIS user, which is usually IUSR_machinename).
If all of that is correct, can you create a test.asp page and check one of the constants declared in global.asa to see if it is firing properly?