By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,574 Members | 2,966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,574 IT Pros & Developers. It's quick & easy.

global.asa not execute

P: n/a
my global.asa file doesn't seem to be executing in IIS
and i don't know how to make them run. Any ideas how to
execute the global.asa file in IIS 5.1 , please let me
know. thank you very much.
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
http://www.aspfaq.com/2076
http://www.aspfaq.com/2144

<an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
my global.asa file doesn't seem to be executing in IIS
and i don't know how to make them run. Any ideas how to
execute the global.asa file in IIS 5.1 , please let me
know. thank you very much.

Jul 19 '05 #2

P: n/a
Hello Aaron and all,

I am replying to this, coz, my question is related to Global.asa.
I can get that to run, but here is my scenario. We have multiple apps
with their own Global.asa files, but connecting to same database and
using same Error Routines, CleanUp etc. So I thought to consolidate
them using following.

One SetUp file, which will set all variables ( appsetup.asp )
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
strUser = Request.ServerVariables("LOGON_USER")
strPath = Request.ServerVariables("LOGON_USER")
strDBStr = "Production" ( Or Devlopement etc... )
....
</SCRIPT>

Second File which has functions or subs for connection, error display
etc...
( appfunctions.asp )

<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Function ConnectToDB(DBName)
objConn.Open ( Connection String )
End Function

Sub ShowError(errMsg, errNo, customMsg )
..... some gaudy HTML output
End Sub

</SCRIPT>

Now in Global.asa for each apps...

<!-- #include file = "common/appsetup.asp" -->
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
App_OnStart...
App_OnEnd ...

Sub Session_OnStart
</SCRIPT>
<!-- #include file = "common/appfunctions.asp" -->
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
ConnectToDB ( NorthWind )
some SQL operations to create session vars.

CleanUp
</SCRIPT>

My problem is....
In the function ( ConnectToDB ) or any Sub, I cannot access the
variables that I set for, those are common for all apps.
What am I missing here ?? Idea behind this is to keep it all at one
place, so it can be easily configurable.

Can anyone please help me on this ?
Thanks,
Snehal
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message news:<uN**************@TK2MSFTNGP09.phx.gbl>...
http://www.aspfaq.com/2076
http://www.aspfaq.com/2144

<an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
my global.asa file doesn't seem to be executing in IIS
and i don't know how to make them run. Any ideas how to
execute the global.asa file in IIS 5.1 , please let me
know. thank you very much.

Jul 19 '05 #3

P: n/a
Sorry... The correct version with switched Include files...

Hello Aaron and all,

I am replying to this, coz, my question is related to Global.asa.
I can get that to run, but here is my scenario. We have multiple apps
with their own Global.asa files, but connecting to same database and
using same Error Routines, CleanUp etc. So I thought to consolidate
them using following.

One SetUp file, which will set all variables ( appsetup.asp )
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
strUser = Request.ServerVariables("LOGON_USER")
strPath = Request.ServerVariables("LOGON_USER")
strDBStr = "Production" ( Or Devlopement etc... )
....
</SCRIPT>

Second File which has functions or subs for connection, error display
etc...
( appfunctions.asp )

<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Function ConnectToDB(DBName)
objConn.Open ( Connection String )
End Function

Sub ShowError(errMsg, errNo, customMsg )
..... some gaudy HTML output
End Sub

</SCRIPT>

Now in Global.asa for each apps...

<!-- #include file = "common/appfunctions.asp" -->
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
App_OnStart...
App_OnEnd ...

Sub Session_OnStart
</SCRIPT>
<!-- #include file = "common/appsetup.asp" -->
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
ConnectToDB ( NorthWind )
some SQL operations to create session vars.

CleanUp
</SCRIPT>

My problem is....
In the function ( ConnectToDB ) or any Sub, I cannot access the
variables that I set for, those are common for all apps.
What am I missing here ?? Idea behind this is to keep it all at one
place, so it can be easily configurable.

Can anyone please help me on this ?
Thanks,
Snehal
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message news:<uN**************@TK2MSFTNGP09.phx.gbl>...
http://www.aspfaq.com/2076
http://www.aspfaq.com/2144

<an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
my global.asa file doesn't seem to be executing in IIS
and i don't know how to make them run. Any ideas how to
execute the global.asa file in IIS 5.1 , please let me
know. thank you very much.

Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.