title: webclient The remote server returned an error: (500) Internal Server Error
body: <p>I'm trying to download a webpage using webclient and get the 500 internal error</p>
  
  <pre><code>public class AsyncWebClient
      {
          public string GetContent(string url)
          {
              return GetWebContent(url).Result.ToString();
          }
          private Task&lt;string&gt; GetWebContent(string url)
          {
              var wc = new WebClient();
              TaskCompletionSource&lt;string&gt; tcs = new TaskCompletionSource&lt;string&gt;();
  
              wc.DownloadStringCompleted += (obj, args) =&gt;
              {
                  if (args.Cancelled == true)
                  {
                      tcs.TrySetCanceled();
                      return;
                  }
  
                  if (!String.IsNullOrEmpty(args.Result))
                      tcs.TrySetResult(args.Result);
              };
  
              wc.DownloadStringAsync(new Uri(url));
              return tcs.Task;
          }
      }
  </code></pre>
  
  <p>and call:</p>
  
  <pre><code>var wc =new AsyncWebClient();
  var html = wc.GetContent("http://truyen.vnsharing.net/");    &gt;&gt; always get the above error
  </code></pre>
  
  <p>if i use other site, then it works just fine. don't know what's special in this site.</p>
  
  <p>Please help !!</p>