I am trying to create some sort of error catching method that will return the error line number. We have an abort email that is sent out when a process aborts that gives us the
You should definitely use the stack trace, since you can use a global exception catching mechanism that you will need to code only once.
To get the exact line on which the error was thrown, you will need to ship the pdb files with your application. Those pdb files contain debug information, including the error's line number.
If you want to know how to catch unhandled exceptions gracefully, have a look at this codeproject article.