|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Priting call stack on error in asp.net
Hi,<br><br> I would like to print the call stack on an error in my applications to an error file. This is the same call stack that appears on the screen in an asp.net application when there is no try/catch logic implemented(including calling modules and the offending line in the erroring module). Does anyone have any advice on how to do this. Thanks,<br>Neil
|
|
#2
|
|||
|
|||
|
Neil,<br><br>I can give a suggestion at this time, but not what do u want actually.<br>Page contains a property Page.errorPage, which redirects the user to that page, whenever an error occurs in that page.<br>U try to get the stacktrace in that page using Err Object.<br><br>Kalicharan.
|
|
#3
|
|||
|
|||
|
Kalicharan,<br><br> Thanks for answerin. I will look into this since I am actually trying to create a generic error routine that calls an error page and writes to a log. I did eventually find that environment.stacktrace gives you every call that has occurred. It seems that exception.stacktrace only gives you the last call.<br><br>Thanks again,<br>Neil
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > Priting call stack on error in asp.net |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|