Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

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 ASP Free Forums Sponsor:
  #1  
Old December 15th, 2003, 01:10 PM
neoinbiz neoinbiz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 8 neoinbiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 28 sec
Reputation Power: 0
ASP paged can not be displayed

I get this error on:
Error Type:
Microsoft VBScript compilation (0x800A03EE)
Expected ')'
/rfi/global.asa, line 4, column 17
if Application(""Users"")="""" then
----------------^


This works on other servers but for some reason I can not get it to work. I have Windows 2000 with IIS running.

Reply With Quote
  #2  
Old December 15th, 2003, 03:59 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
Why are your quotes doubled up? Did you copy this code from somewhere else?

If Application("Users") = "" Then

Reply With Quote
  #3  
Old December 16th, 2003, 08:25 AM
neoinbiz neoinbiz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 8 neoinbiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 28 sec
Reputation Power: 0
Code changed.. still not working..

Still not working. The page just hangs. I do not even get the error.

########Here is old code#######

<SCRIPT LANGUAGE=VBScript RUNAT=Server>

Sub Session_OnStart
if Application(""Users"")="""" then
Application(""Users"")=0
end if
Application(""Users"")=Application(""Users"")+1

End Sub

Sub Session_OnEnd
Application(""Users"")=Application(""Users"")-1
End Sub

</SCRIPT>




########Here is new code#########

<SCRIPT LANGUAGE=VBScript RUNAT=Server>

Sub Session_OnStart
if Application("Users")="" then
Application("Users")=0
end if
Application("Users")=Application("Users")+1

End Sub

Sub Session_OnEnd
Application("Users")=Application("Users")-1
End Sub

</SCRIPT>

Reply With Quote
  #4  
Old December 16th, 2003, 02:16 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
global.asa doesn't execute in a page, and you should not be able to call global.asa from a browser. If you tried to go directly to global.asa and didn't get some kind of error message about "not allowed", you have some configuration problem with your server.

Reply With Quote
  #5  
Old December 16th, 2003, 02:51 PM
neoinbiz neoinbiz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 8 neoinbiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 28 sec
Reputation Power: 0
I am aware of this

there error comes up when i try to go to my login.asp page. it displays the global.asa error

Reply With Quote
  #6  
Old December 16th, 2003, 09:12 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
One guess is that the Users Application variable needs to be initialized in an Application_OnStart sub. Otherwise it will be null or empty when you first try to use it in your code, and a null or empty value isn't the same as a null string ("")

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > ASP paged can not be displayed


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


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





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