Stacktrace with line numbers

  • Thread starter Karsten Grombach
  • Start date
K

Karsten Grombach

Hi,
I'm trying to implement a custom error page for testing purposes.
When an error occurs, I catch it in the global.asax and store it in a
session object, so that the custom error page can display it.
so far so good.
my problem is, that i would like to have a detailed error message like the
standard asp.net error message with line numbers etc. At the moment i'm just
getting the methods called...
This is the code I'm using:
sb.Append("<br>Stacktrace ")
sb.Append("<br>" + ex.StackTrace.Replace(System.Environment.NewLine,
"<br>"))
sb.Append("<br>")
sb.Append("<br>Error")
sb.Append("<br>" + ex.ToString().Replace(System.Environment.NewLine,
"<br>"))
sb.Append("<br>")

Any ideas??
Thanks and Regards
Karsten
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top