Sunday, March 4, 2012

Trouble 2: Increate execution Timeout Issue for sharepoint 2007 and 2010


Default timeout of SharePoint is 6 minutes (360 seconds)

Solution:

Find to path to open file web.config
Sharepoint 2007
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS
Sharepoint 2010
C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS
Open file: web.config

Sample Web.Config

Sharepoint 2007: edit 360 (6 second) to 7 or 8 seconds …

<system.web>
    <compilation batch="false" batchTimeout="600" maxBatchSize="10000" maxBatchGeneratedFileSize="10000" />
    <httpHandlers>
      <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </httpHandlers>
    <customErrors mode="On" />
<httpRuntime executionTimeout="360" />
    <globalization fileEncoding="utf-8" />
  </system.web>

Sharepoint 2010: edit 360 (6 second) to 7 or 8 seconds …

<system.web>
    <compilation batch="false" batchTimeout="600" maxBatchSize="10000" maxBatchGeneratedFileSize="10000" />
    <customErrors mode="On" />
    <httpRuntime executionTimeout="360" />
    <globalization fileEncoding="utf-8" />
  </system.web>

0 comments:

Post a Comment