public void Init(HttpApplication context) { // putting a listener to the error event: context.Error += new EventHandler(context_Error); }