I am using C# having come from a Java background - I have an exception but it does not tell me the line number - Just the method name.
Is that usual?? Is it down to
Line numbers should be available when compiling in Debug as long as you keep the pdb files in the application directory.
pdb
This will also work in Release if you enable PDB creation, as per Justin's answer.
If you are interested, more information can be found at PDB Files (MSDN)