title: Unable to share data by mail with windows 8.1 charm bar
body: <p>I'm currently testing some code exemple provided by microsoft on msdn to check how sharing content from application with the mail application in the charm bar.</p>
  
  <p>The code that microsoft gives you looks like this :</p>
  
  <pre><code>private void RegisterForShare()
  {
      DataTransferManager dataTransferManager = DataTransferManager.GetForCurrentView();
      dataTransferManager.DataRequested += new TypedEventHandler&lt;DataTransferManager, DataRequestedEventArgs&gt;(this.ShareTextHandler);
  }
  
  private void ShareTextHandler(DataTransferManager sender, DataRequestedEventArgs e)
  {
      DataRequest request = e.Request;
      request.Data.Properties.Title = "Share Text Example";
      request.Data.Properties.Description = "A demonstration that shows how to share text.";
      request.Data.SetText("Hello World!");
  }
  </code></pre>
  
  <p>I call the function that register the view for sharing in the following method like it's asked in the tutorial :</p>
  
  <pre><code>public override void OnNavigatedTo(object navigationParameter, Windows.UI.Xaml.Navigation.NavigationMode navigationMode, Dictionary&lt;string, object&gt; viewModelState)
  {
      SelectedContact = (Contact)navigationParameter;
      base.OnNavigatedTo(navigationParameter, navigationMode, viewModelState);
      RegisterForShare();
  }
  </code></pre>
  
  <p>But when I'm opening Sharing in the charm bar and clicking on mail, a message telling me that something went wrong with the information that i'd like to share.</p>
  
  <p><img src="https://i.stack.imgur.com/v1r7h.png" alt="Error Screenshot"></p>
  
  <p>I've check all over the internet but I can't find any similar error.</p>
  
  <p>So if someone got a hint about what went wrong ?</p>
  
  <p>I'm using Visual Studio Professional 2013 with the Emulator to test my app.</p>