|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
Why are your quotes doubled up? Did you copy this code from somewhere else?
If Application("Users") = "" Then |
|
#3
|
|||
|
|||
|
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> |
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
|||
|
|||
|
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
|
|
#6
|
|||
|
|||
|
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 ("")
|
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > ASP paged can not be displayed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|