title: HttpWebResponse.ReadTimeout - Timeouts not supported?
body: <p>We have an issue where on a single instance of our product we receive an InvalidOperationException exception when we attempt to set the ReadTimeout property of an System.Net.HttpWebResponse object.</p>
  
  <p>This issue is occurring only on a single instance, where we have many multiple live sites without this problem. We've tried to recreate the issue locally, to no avail.</p>
  
  <p>The following code illustrates the issue. </p>
  
  <p>Any ideas are greatly welcome. </p>
  
  <p>Thanks</p>
  
  <pre><code>    private static XmlReader GenerateReaderFromResponse(HttpWebResponse response, HttpWebRequest request)
      {
          Stream responseStream = response.GetResponseStream();
          responseStream.ReadTimeout = request.Timeout; //This is where the exception is generated - System.InvalidOperationException: Timeouts are not supported on this stream.
  
          using (StreamReader responseReader = new StreamReader(responseStream, System.Text.Encoding.UTF8))
          {
              XmlReaderSettings readerSettings = new XmlReaderSettings();
              readerSettings.ProhibitDtd = false;
              string responseContent = responseReader.ReadToEnd();
              return XmlReader.Create(new StringReader(responseContent), readerSettings);
          }
      }
  </code></pre>