ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 12th, 2003, 04:54 PM
txbakers txbakers is offline
webgeek
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Dallas, TX, USA
Posts: 120 txbakers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #2  
Old December 15th, 2003, 10:32 AM
fhunth fhunth is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 1 fhunth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: Global.ASA difficulties

check that your ADODB.Recordset object is registered



Quote:
Originally posted by txbakers
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?


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.

Reply With Quote
  #3  
Old December 15th, 2003, 01:13 PM
WisconsinGuy's Avatar
WisconsinGuy WisconsinGuy is offline
I thank you very little
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2003
Location: Milwaukee, WI
Posts: 1,028 WisconsinGuy User rank is Corporal (100 - 500 Reputation Level)WisconsinGuy User rank is Corporal (100 - 500 Reputation Level)WisconsinGuy User rank is Corporal (100 - 500 Reputation Level)WisconsinGuy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 35 m 41 sec
Reputation Power: 9
Some servers don't allow Global.asa, make sure yours is. Personally, I don't know how, good luck though. Maybe try google

Reply With Quote
  #4  
Old December 16th, 2003, 01:57 AM
txbakers txbakers is offline
webgeek
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Dallas, TX, USA
Posts: 120 txbakers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 17 sec
Reputation Power: 7
Thanks all.

1) I don't understand about registering the ADODB.RecordSet. I'm running ASP pages on the server (about 300+) and all use the ADODB.Recordset without difficulty.

In fact I'm using the same exact code on a different web site and it works flawlessly! Why not this one?? Baffling.

2) I'm running Windows server, so it does support Global.asa files.

Thanks gain.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Global.ASA difficulties


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT