If you ship your application with source code and debug symbols you can get the callstack from Environment.StackTrace which will contain the file name and line number. With that information you could open it up in your favorite text editor.
Reputation Points: 1749
Solved Threads: 735
Senior Poster
Offline 3,948 posts
since Feb 2009