I have the following code:
WebClient wc = new WebClient(); string result; try { result = await wc.DownloadStringTaskAsync( new Uri( \"http://badurl\" ) );
Give this a try:
try { await AsyncFunction(...); } catch(Exception ex) { Utilities.LogExceptionToFile(ex).Wait(); //instead of "await Utilities.LogExceptionToFile(ex);" }
(See the Wait() ending)
Wait()