Sharepoint学习笔记—修改SharePoint的Timeouts (Execution Timeout)

有时在Sharepoin中有些执行任务可能会超过Sharepoint环境默认的Timout限制,这种情况下系统会报"Request Timed out"错误。对此我们可以在两个层次上修改Web.config文件。

  一是分别设置你所运行的Web application的Web.config,这种修改影响范围是单一的,即只影响你所设置的Web application。

  二是设置"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS"下的Web.config,这种修改影响范围是全局的。

  以特定Web Application的Web.config文件的修改为例。打开此Application的Web.config所在的目录:

  "C:\inetpub\wwwroot\wss\VirtualDirectories\xxxx"    (xxxx通常是:\%Application+Port%)

   打开此目录下的Web.config,找到<httpRuntime maxRequestLength="51200" />,修改此代码为

<httpRuntime maxRequestLength="51200" executionTimeout="3600" />

修改结果如下所示

posted @ 2015-12-18 15:23  TwinStudio  阅读(277)  评论(0编辑  收藏  举报