Remember to:
1. Use the stack track in Visual Studio to find out what envoked the calls
2. Never throw a new exception, because you will lose the stack trace
Wrong way:
try { // Some code that throws an exception } catch (Exception ex) { // some code that handles the exception throw ex; }
Right way:
try { // Some code that throws an exception } catch (Exception ex) { // some code that handles the exception throw; }
3. Add trace=”true” in your .aspx page to display additional debug information about your page. Then you can
trace.write("My Event", "My Message");
Leave a comment