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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -