I having a problem here. The situation is as follow, I have a web system with is using C#, if error occur it will capture the error in Global.asax.cs in "Application_Error" and it will kept the error message in a session - Session["ErrorMsg"].
In Global.asax.cs it wil redirect to an error page - "ErrorPage.aspx" to display the error message reading from the session.
The problem is on "Page_Load" in "ErrorPage.aspx", it try to read the Session["ErrorMsg"] but it return error which is :- "function 'Session.get_Item' evaluated and returned null"
What is the problem that cause the error ? Would help if example is provided.
Thanks in advance.