Last post Aug 16, 2016 01:02 PM by Chris Zhao
Aug 16, 2016 04:18 AM|robby32|LINK
I have a web app written in c#. There is a menu that i navigate in . Now at times when i continually navigate throughout the menu , the app goes to my default page / home page . Default.aspx. There are no errors and there are no event logged in event viewer.
Is there a way I can log where it previously was when the redirection happened , like the call stack ?
Aug 16, 2016 06:51 AM|Mikesdotnetting|LINK
You can use the approach detailed here: http://peterkellner.net/2009/12/21/how-to-get-a-stack-trace-from-c-without-throwing-exception/
Aug 16, 2016 06:53 AM|NishantMittal|LINK
Here is the solution
Aug 16, 2016 01:02 PM|Chris Zhao|LINK
You could refer to ASP.NET Error Handling. In this tutorial, you will learn about handling errors at the application level,
the page level, and the code level, and how to log handled and unhandled errors for later review.