1
Vote

Error in Global.asax

description

void Application_Error(object sender, EventArgs e)
    {
       Exception myEx =  Server.GetLastError();
       String RedirectUrlString = "~/Error.aspx?InnerErr=" + myEx.InnerException.Message.ToString() + "&Err=" + myEx.Message.ToString();
    }
 
Inner Exception in null sometime.
 
Also in Error.aspx need to check InnerErr query string parameter.

comments