当您尝试将一个大文件上载到 Windows SharePoint Services 3.0 站点上的文档库可能出现:"请求超时"错误
原因
如果您尝试上载的文件大小超过 50 兆字节 (MB) 时,可发生此问题。
要解决此问题,请使用一个或多个下面的方法。
若要增加最大上载大小,请执行以下步骤:
若要提高连接的超时设置,请按照下列步骤。
注意默认情况下,IIS
连接超时设置值为 120 秒。
程序使用主题 Shared\Web 服务器 extensions\12\TEMPLATE\LAYOUTS
<location path="upload.aspx"> <system.web> <httpRuntime maxRequestLength="2097151" /> </system.web> </location>
替换代码
<location path="upload.aspx"> <system.web> <httpRuntime executionTimeout="999999" maxRequestLength="2097151" /> </system.web> </location>
Inetpub\wwwroot\wss\VirtualDirectories\VirtualDirectoryFolder
<httpRuntime maxRequestLength="51200" />
替换行
<httpRuntime executionTimeout="999999" maxRequestLength="51200" />
在 Windows Server 2008 的计算机的已仅 IIS 7.0 安装,您可以添加要解决的问题,"症状"一节中描述的 maxAllowedContentLength 值。但是,您不能上载会大于 28 MB,即使您已配置了较大的文件上载设置,当您运行的 Windows SharePoint Services,Windows Server 2008 基于已安装的 IIS 7.0 的计算机上的文件。通常,您将收到类似于以下内容之一的错误消息:
不显示此页。
HTTP 404
若要变通解决此问题,请编辑该 web 应用程序的 Web.config 文件中的 <configuration> 部分。若要执行此操作,请执行以下步骤:
Inetpub\wwwroot\wss\VirtualDirectories\VirtualDirectoryFolder
< requestLimits maxAllowedContentLength ="52428800"/ >
注意如果 Web.config 文件不已经有 <requestLimits>
节点,必须将其添加在部分层次结构中正确的位置:
<configuration>
<system.webServer>
<security>
<requestFiltering>
<
requestLimits maxAllowedContentLength ="52428800"/
>
</requestFiltering>
</security>
</system.webServer>
</configuration>
原文:http://www.cnblogs.com/914556495wxkj/p/3521033.html