title: Preventing app from running into timeout
body: <p>Sorry experts for the title, I could not think of a better way.</p>
  
  <p>The code below receives as many as 20 links, then using a component, converts those 20 links into documents and stores these documents into one adobe pdf file.</p>
  
  <p>It works if you pass along less than 10. Anything above, breaks the app.</p>
  
  <p>It turns out that the reason code is breaking is because it is taking too long to run.</p>
  
  <p>Is there a way in asp.net (c# or vb.net) to configure the app to run longer without breaking?</p>
  
  <p>Is this done on iis side?</p>
  
  <p>If yes, can someone please point me in the right direction?</p>
  
  <p>The one thing I know is iis metabase to set it to accept larger sizes but I am not sure what to do with the code below to ensure app doesn't break when taking too long to run.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Text;
  using EO.Pdf;
  using System.Collections.Specialized;
  using EO.Web;
  
  partial class getRecs : System.Web.UI.Page
  {
      private void  // ERROR: Handles clauses are not supported in C#
  Page_Load(object sender, System.EventArgs e)
      {
  
          if (!Page.IsPostBack) {
              string linksList = Request.QueryString("pid");
              string[] AllLinks = linksList.Split(",");
  
              //Create a PdfDocument object
              PdfDocument doc = new PdfDocument();
  
              string links = null;
  
              foreach ( links in AllLinks) {
  
                  HtmlToPdf.ConvertUrl(url, doc);
              }
  
              doc.Save(Response.OutputStream);
  
          }
      }
  
  }
  </code></pre>
  
  <p>Thanks for your help.</p>