D
dauphian
Greetings,
Is there a way to receive the information that shows on the default
error page within .net in an email?
I have managed to pull out some pieces using:
mail.Body = "Error Description: " + Server.GetLastError().Data.Values +
" <br /><br /> "
+ Server.GetLastError().Message + " <br /><br /> "
+ Server.GetLastError().Data + " <br /><br /> "
+ Server.GetLastError().StackTrace + " <br /><br /> "
+ Server.GetLastError().InnerException + " <br /><br /> "
+ Server.GetLastError().Source;
But the display and what is output on the web page is a lot cleaner and
easier to read than what I am returning above.
I am using a global error setting for the app vs a page by page.
Thanks in advance.
Is there a way to receive the information that shows on the default
error page within .net in an email?
I have managed to pull out some pieces using:
mail.Body = "Error Description: " + Server.GetLastError().Data.Values +
" <br /><br /> "
+ Server.GetLastError().Message + " <br /><br /> "
+ Server.GetLastError().Data + " <br /><br /> "
+ Server.GetLastError().StackTrace + " <br /><br /> "
+ Server.GetLastError().InnerException + " <br /><br /> "
+ Server.GetLastError().Source;
But the display and what is output on the web page is a lot cleaner and
easier to read than what I am returning above.
I am using a global error setting for the app vs a page by page.
Thanks in advance.