I have an ASP.NET application and in the Global.asax \' Application Error Event, I am calling a method to trace/log the error. I want to use the session variable content her
You may try this:
HttpContext context = ((HttpApplication)sender).Context;
then you must use is like this:
context.Request.QueryString.ToString() context.Session["key"] = "fasfaasf";
but if the exception was thrown before the Session object is loaded, it will be null