protected void Application_Error(object sender, EventArgs e) { Exception exc = Server.GetLastError(); StackTrace st = new StackTrace(exc, true); foreach (StackFrame frame in st.GetFrames()) { int LineNumber = frame.GetFileLineNumber(); } Server.ClearError(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)