title: "TargetInvocationException" in windows phone 8 sdk
body: <blockquote>
    <p>An exception of type System.Reflection.TargetInvocationException
    occurred in System.ni.dll but was not handled in user code.</p>
  </blockquote>
  
  <pre><code>var client = new WebClient(); 
  client.DownloadStringCompleted += (sender, e) =&gt;
             {
                  XDocument doc = XDocument.Load(e.Result);
             };
  client.DownloadStringAsync(new Uri("http://mylocation.com/myfile.php?userid=xyz"));
  </code></pre>