Configuration Step:web
当您尝试将一个大文件上载到 Windows SharePoint Services 3.0 站点上的文档库可能出现:"请求超时"错误服务器
缘由
若是您尝试上载的文件大小超过 50 兆字节 (MB) 时,可发生此问题。app
要解决此问题,请使用一个或多个下面的方法。工具
若要增长最大上载大小,请执行如下步骤:url
若要提升链接的超时设置,请按照下列步骤。
注意默认状况下,IIS 链接超时设置值为 120 秒。spa
程序使用主题 Shared\Web 服务器 extensions\12\TEMPLATE\LAYOUTSorm
<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\VirtualDirectoryFolderit
<httpRuntime maxRequestLength="51200" />
替换行io
<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>
注意咱们建议您设置的 maxAllowedContentLength 值略大于您在 SharePoint 配置的最大文件上载大小。若是 maxAllowedContentLength 的值等于或小于最大文件上载大小是在 SharePoint 中配置,用户将不会收到错误消息他们都超出的大小限制,若是用户尝试上载文件的大小大于指定的管理员。