title: webclient timeout while uploading
body: <p>I know that WebClient doesnot have the property of timeout. I searched around and found different codes in which you can inherit the webclient from httpwebrequest and set the timeout For Example:</p>
  
  <pre><code>   class MyWebClient : WebClient
  {
      protected override WebRequest GetWebRequest(Uri address)
      {
          WebRequest request = base.GetWebRequest(address);
          if (request is HttpWebRequest)
          {
              (request as HttpWebRequest).KeepAlive = false;
              (request as HttpWebRequest).Timeout = 25000; //(tried different values)
          }
          return request;
      }
  }
  </code></pre>
  
  <p>But nothing seems to work here. The timeout occurs exactly after 100 seconds. I am trying to upload big file through this client application i made. PHP is running on the server side and all timeouts/maxupload values are set. </p>
  
  <p>The exception message is :</p>
  
  <pre><code>the request was aborted the request was canceled
  </code></pre>
  
  <p>Please help me out. </p>