Possible Duplicate:
C# Exceptions Not Giving Line Numbers
In C# winform, inside a catch block i have
Exception.ToString()
-> to get exception information and line number of the code where the exception is thrown.
In dev. environment, i get the line number, whereas when the same EXE is deployed in the production, i don't get line numbers, any thoughts?
How do i get line #s in production environment? Even i tried StackTrace
class's GetFileLineNumber()
, but it didn't bring me the line # in production environment.