>>Instead of putting that code into the Global.asax file, I am wondering if there could be a possibility that I could put it in my Framework.dll. Is this possible for inheritance in regards to Global.asax?
>
>I created a class in the framework such as this:
>
>
>Namespace Framework
>
> Public Class GlobalBase
> Inherits System.Web.HttpApplication
>
>
>I then updated the Global.asac to inherit from that class. This works. The regular Global.asax start and end events are fired and I can proceed from there.
Just catching up on your posts..
As far as selecting which recycling events to log:
The first four options correspond to the four checkboxes in the Recycling tab of the Application Pool properties window. You'd only need to monitor the ones which were checked. It might be worth adding the IsApiUnhealthy and RecyclePrivate memory - if those events occur it could indicate some problem with the app itself (eg. a memory leak).
Also I guess you don't need to generate your own Guid in Application_End - you can access the actual process Id via ProcessInformation.ProcessID which will make it easier to correlate with the IIS log....
HTH,
Viv