c# - Getting a line # and proc name in asp.net -


I am writing an error log process (for security reasons I could not use log4net / elmah etc), And I want to know whether it is possible to get the line number of the line, where the error occurred and / or the process name where the error occurred?
I will endeavor to capture the statement block, so I hope the error handler (or error due to that line) and related process name to get the line number

hold (exception e)
{string string errmessage = e.message
string errorsTraceDetails = E.StackTrace
}

This should give you the necessary details.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -