Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you want to extend the amount of time permitted for an ASP.NET script to execute then increase the <a href="http://msdn.microsoft.com/en-us/library/system.web.httpserverutility.scripttimeout.aspx" rel="noreferrer"><code>Server.ScriptTimeout</code></a> value. The default is 90 seconds for .NET 1.x and 110 seconds for .NET 2.0 and later.</p> <p>For example:</p> <pre><code>// Increase script timeout for current page to five minutes Server.ScriptTimeout = 300; </code></pre> <p>This value can also be configured in your <code>web.config</code> file in the <a href="http://msdn.microsoft.com/en-us/library/e1f13641(v=VS.80).aspx" rel="noreferrer"><code>httpRuntime</code></a> configuration element:</p> <pre><code>&lt;!-- Increase script timeout to five minutes --&gt; &lt;httpRuntime executionTimeout="300" ... other configuration attributes ... /&gt; </code></pre> <p><img src="https://i.stack.imgur.com/hEjyA.png" alt="enter image description here"></p> <p>Please note according to the <a href="http://msdn.microsoft.com/en-us/library/vstudio/e1f13641%28v=vs.100%29.aspx" rel="noreferrer">MSDN documentation</a>: </p> <blockquote> <p>"This time-out applies only if the debug attribute in the compilation element is False. Therefore, if the debug attribute is True, you do not have to set this attribute to a large value in order to avoid application shutdown while you are debugging."</p> </blockquote> <p>If you've already done this but are finding that your session is expiring then increase the ASP.NET <a href="http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout(v=VS.80).aspx" rel="noreferrer"><code>HttpSessionState.Timeout</code></a> value:</p> <p>For example:</p> <pre><code>// Increase session timeout to thirty minutes Session.Timeout = 30; </code></pre> <p>This value can also be configured in your <code>web.config</code> file in the <code>sessionState</code> configuration element:</p> <pre><code>&lt;configuration&gt; &lt;system.web&gt; &lt;sessionState mode="InProc" cookieless="true" timeout="30" /&gt; &lt;/system.web&gt; &lt;/configuration&gt; </code></pre> <p>If your script is taking several minutes to execute and there are many concurrent users then consider changing the page to an <a href="http://weblogs.asp.net/scottgu/archive/2005/10/12/427318.aspx" rel="noreferrer">Asynchronous Page</a>. This will increase the scalability of your application.</p> <p>The other alternative, if you have administrator access to the server, is to consider this long running operation as a candidate for implementing as a scheduled task or a windows service.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload