码迷,mamicode.com
首页 > 其他好文 > 详细

SharePoint中遇到Timeout

时间:2015-12-16 23:00:20      阅读:276      评论:0      收藏:0      [点我收藏+]

标签:

使用SharePoint时会遇到不止一种的timeout(即超时)错误. 如果遇到了timeout, 该怎么区分呢?

 

大致上SharePoint可以控制和影响的timeout地方如下:

1. SharePoint管理中心中对于文件大小的限制, 默认50M.

技术分享

 

2. SharePoint从SQL Server读取数据块的大小上限. 

Stsadm.exe –o setproperty –pn large–file–chunk–size –pv <size in bytes>

 

3. SharePoint对Layouts目录下的页面的executionTimeout 的限制. 注意, 这里的upload.aspx的executionTimeout需要酌情适当修改.

C:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\TEMPLATE\LAYOUTS\web.config.

 

值得注意的是, 这个web.config中还包含对具体页面的maxRequestLength和executionTimout的不同配置. 举例:

<location path="ChangeContentTypeOptionalSettings.aspx"> 
  <system.web> 
    <httpRuntime maxRequestLength="2097151" executionTimeout="3600" /> 
  </system.web> 
</location> 

4. 跟站点的web.config文件中的executionTimeout设置.

C:\Inetpub\wwwroot\wss\VirtualDirectories\VirtualDirectoryFolder\web.config

 

5. IIS中的connection timeout.

技术分享

 

注意SQL端对语句执行时间的限制是不会影响到SharePoint的超时设置的.

在下篇文章中, 我们来讨论一下SQL Server里的timeout设置.

 

6. 如果发生使用IE上传大文件会timeout, 而使用firefox浏览器上传却不会timeout的情况, 请参照这篇文章<<HTTP File Upload Operation Takes a Long Time to Complete>>来修改注册表, 从而增加使用Winsock时的发送缓冲的大小.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

Value Name: SocketSendBufferLength

Data Type: REG_DWORD

Value Options: 16384, 24576, 32768, ... ,65536

具体选项详见文章.

 

Reference

=====================

How to troubleshoot HttpException Request timed out (ASP.NET 2.0 32-bit)

http://blogs.msdn.com/b/asiatech/archive/2011/07/06/how-to-troubleshoot-httpexception-request-timed-out-asp-net-2-0-32-bit.aspx

SqlCommand.CommandTimeout Property

http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.commandtimeout.aspx

OleDbConnection.ConnectionTimeout Property

http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbconnection.connectiontimeout.aspx

Error message when you try to upload a large file to a document library on a Windows SharePoint Services 3.0 site: "Request timed out"

http://support.microsoft.com/kb/925083/en-us

deployment Element (ASP.NET Settings Schema)

http://msdn.microsoft.com/en-us/library/ms228298%28v=vs.80%29.aspx

导致SharePoint发生Timeout的三处门槛设置

http://www.cnblogs.com/awpatp/archive/2010/02/22/1670964.html

SharePoint Large File Upload Configuration

http://blogs.technet.com/b/sharepointcomic/archive/2010/02/14/sharepoint-large-file-upload-configuration.aspx

Uploading Large files to SharePoint on Windows Server 2008 and IIS7

http://blogs.technet.com/b/sharepointcomic/archive/2010/02/14/uploading-large-files-to-sharepoint-on-windows-server-2008-and-iis7.aspx

HTTP File Upload Operation Takes a Long Time to Complete

http://support.microsoft.com/kb/329781

SharePoint中遇到Timeout

标签:

原文地址:http://www.cnblogs.com/tdskee/p/5052565.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!