change this line:

Code:
System.Diagnostics.Debug.WriteLine(err.Message);
to

Code:
System.Diagnostics.Debug.WriteLine(err.ToString());
you will also get the stack trace when writing the entire error.