I have written following code in my global.asax file
void Application_PreRequestHandlerExecute(object sender, EventArgs e)
{
ConnStr = objConnStr.GetConnectionString();
if (HttpContext.Current.Session["LOGIN"] != null )
{
}
}
It is throwing following error at *HttpContext.Current.Session["LOGIN"] *
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
what may be the issue ?