title: ShareMediaTask Working in Windows Phone 8.1 device but Not in Windows Phone 8
body: <p>I am working with a Windows Phone 8 Application.
  I wanted to share a partcular image with a specific name.</p>
  
  <p>This is the code snippet I am using.     </p>
  
  <pre><code>  //Find a Pic that contains the Pic with a particular Name
    var pic = mediaLibrary.SavedPictures.FirstOrDefault(p =&gt; p.Name.Contains("&lt;name&gt;"));
    ShareMediaTask smt = new ShareMediaTask();
    smt.FilePath = pic.GetPath();
    Deployment.Current.Dispatcher.BeginInvoke(() =&gt;smt.Show()); 
  </code></pre>
  
  <p>The strange thing that has come to me is the code is working when I am installing the Application on a Windows Phone 8.1 Device. But When I run it on Windows Phone 8 Device the ShareMediaTask is not Initiating.</p>
  
  <p>I could not figure out whats the problem. I am getting no Exception also when i run in Windows Phone 8 device.</p>
  
  <p>Has any one faced a similar situaton. Am I missing something that is Windows Phone 8 Specific.
  Please help me out guys.</p>
  
  <p>Thank you in advance.</p>