title: how to handle PageRequestManagerTimeoutException in ASP.net Web Application?
body: <p>I am working on a ASP.NET web application that tryies to download some files from a remote server by login the server. While I try to download a file it works fine with small files but a It shows following exception while downloading a file of 750 KB.</p>
  
  <p><img src="https://i.stack.imgur.com/AEFsN.png" alt="enter image description here"></p>
  
  <p>I m defining the <code>HTTPRequest Timout = System.Threading.Timeout.Infinite;</code></p>
  
  <p>I m reading the files from server using this code</p>
  
  <pre><code>byte[] buffer = new byte[32768];
              using (Stream input = getResponse.GetResponseStream())
              {
                  using (FileStream output = new FileStream(saveTo1, FileMode.OpenOrCreate))
                  {
                      int bytesRead;
  
                      while ((bytesRead = input.Read(buffer, 0, buffer.Length)) &gt; 0)
                      {
                          output.Write(buffer, 0, bytesRead);
                      }
                  }
              }
  </code></pre>
  
  <p>What could possible be creating this problem?</p>
  
  <blockquote>
    <p>Also When I click on <code>Ignore</code> or <code>Continue</code> It continues the download
    smoothly further. How can I overcome this problem?</p>
  </blockquote>
  
  <p>Thanks in Advance. :)</p>