Application_OnEnd Event
IIS 6.0
The Application_OnEnd event occurs when the application quits, after the Session_OnEnd event. Only the Application Object and Server Object built-in objects are available.
<SCRIPT LANGUAGE=ScriptLanguage RUNAT=Server> Sub Application_OnEnd. . . End Sub </SCRIPT>
You cannot call the Server.MapPath method in the Application_OnEnd script. By default, Application_OnEnd runs as the Anonymous User, as defined for the application. In the event that there isn't an Anonymous user, or the Logon for the Anonymous user fails, the OnEnd function will not be called, and an event will be logged.
Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Product: IIS