title: How do i log all Exception in windows phone 8?
body: <p>I craete one app using <strong>EmailComposeTask</strong> in windows phone8. It's Working fine. But at final of sent mail throw the exception. like the below image. </p>
  
  <p><img src="https://i.stack.imgur.com/GNGkP.png" alt="enter image description here"> </p>
  
  <p>How can i solve the problem and why this problem occurred?.</p>
  
  <p>Please Help Me. Thanks in Advance.</p>
  
  <p><strong>Here My Code.</strong></p>
  
  <pre><code>    private void saveEmailAddressTask_Completed(object sender, TaskEventArgs e)
      {
          if (e.TaskResult == TaskResult.OK)
          {
              MessageBox.Show("Email successfully Saved..");
          }
      }
  
  
      private void emailAddressChooserTask_Completed(object sender, EmailResult e)
      {
          try
          {
              if (e.TaskResult == TaskResult.OK)
              {
                  MessageBox.Show("Selected email :" + e.Email);
              }
          }
          catch (Exception ex)
          {
              MessageBox.Show(ex.Message);
          }
      }            
  
      private void mail_Tap(object sender, System.Windows.Input.GestureEventArgs e)
      {
          try
          {                
              EmailComposeTask Myemail_Composetask = new EmailComposeTask();
              Myemail_Composetask.Subject = "PhotoWrite Share";
              Myemail_Composetask.Body = "Hi, I am sharing my PhotoWrite Photo, Hope you Like it.";
              Myemail_Composetask.To = "";
              Myemail_Composetask.Show();
          }
          catch (Exception ex)
          {
              MessageBox.Show(ex.Message);
          }
  
      }
  </code></pre>