[thelist] ASP - Application never unloads

Scott Dexter sgd at ti3.com
Thu Jun 1 11:54:06 2000


open a DOS box

type "mtxstop"

hit enter

then open the MMC, right click on the web site, choose "stop"


--The Application_Unload even isn't fired until the application (web site)
is stopped. If you want to reload the Application variables once a night I'd
schedule a script that does something like:


<%
' to prevent race conditions and ensure what we set stays
Application.Lock

' set my Application variables in here

 ' open it up again
Application.Unlock
%>

Hope that helps (and no, I'm not a robot or an employee of MS)
sgd
--
think safely

> -----Original Message-----
> From: Atkins, Chris [mailto:CAtkins@patriothomes.com]

> 
> I've this application that loads a whole bunch of Application
> level variables when Application_OnStart (I know, I know,
> but I'm just maintaining this thing, I didn't write it).
> 
> So, I'm thinking, every night the application should unload
> after every session has timed out, but it doesn't.  Furthermore,
> trying to explicitly unload the application ("Unload" button in
> MMC for the app properties) doesn't unload the application 
> either.