void context_BeginRequest(object sender, EventArgs e) { try { HttpApplication context = ((HttpApplication)sender); objUserLogger = new UserLogger(); objUserLogger.StartUserLog(context.Context); } catch (Exception ex) { } }