title: Json: the remote server returned an error (500) internal server error
body: <p>i am trying to read a web service in Json format</p>
  
  <p>here is my code:</p>
  
  <pre><code>WebClient wc = new WebClient();
          wc.UseDefaultCredentials = true;
          var data = wc.DownloadString(JsonUri);
          MemoryStream ms = new MemoryStream(Encoding.Unicode.GetBytes(data));
          DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(List&lt;PaymentMethod&gt;));
          var result = serializer.ReadObject(ms);
          ms.Close();
          ms.Dispose();
  </code></pre>
  
  <p>i get an error on this line:</p>
  
  <pre><code>var data = wc.DownloadString(JsonUri);
  </code></pre>
  
  <p>the JsonUri is : <a href="http://avaris.kwekud.com/api/v1/items/uniqueitem/?username=joel&amp;api_key=959dd41efd06b84ca7f10b1b12f5f3e6567c07dc&amp;format=json" rel="nofollow">http://avaris.kwekud.com/api/v1/items/uniqueitem/?username=joel&amp;api_key=959dd41efd06b84ca7f10b1b12f5f3e6567c07dc&amp;format=json</a></p>
  
  <p>Any Help </p>
  
  <p>thanks</p>