<p>Is it possible to catch an recycle event in the global.asax?</p>

<p>I know Application_End will be triggered but is there a way to know that it was triggered by a recycle of the application pool?</p>

<p>thx, Lieven Cardoen aka Johlero</p>

I've never tried this myself, but you could try to attach an event handler to the ProcessExit event of the AppDomain.
```
```
...
AppDomain.CurrentDomain.ProcessExit += new EventHandler(OnExit);
...

void OnExit(object sender, EventArgs e) {
    // do something
}
```
```
I hope this helps!