Microsoft KB Archive/925083

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

Article ID: 925083

Article Last Modified on 11/16/2007

-

APPLIES TO


 * Microsoft Windows SharePoint Services 3.0

-



SYMPTOMS
When you try to upload a large file to a document library on a Microsoft Windows SharePoint Services 3.0 site, you receive the following error message:

Request timed out.

This problem occurs if the following conditions are true:  You configured the Microsoft Windows SharePoint Services 3.0 site to support large files by following the steps on the following Microsoft Web site:

http://office.microsoft.com/en-us/assistance/HA011607881033.aspx

 The file is larger than 50 megabytes (MB).

Note Scanning files that are larger than 50 MB is not supported when you use virus scanning software together with Windows SharePoint Services 3.0.



RESOLUTION
To resolve this issue, use one or more of the following methods:
 * Increase the maximum upload size for the virtual server settings in Microsoft Internet Information Services (IIS).
 * Increase the connection time-out setting in IIS.
 * Add the executionTimeout value in the Web.config file.

Increase the maximum upload size

 * 1) Click Start, point to All Programs, point to Administrative Tools, and then click SharePoint Central Administration.
 * 2) Under Virtual Server Configuration, click Configure virtual server settings. On the Virtual Server List page, click the virtual server that you want to change.
 * 3) On the Virtual Server Settings page, under Virtual Server Management, click Virtual server general settings.
 * 4) Under Maximum upload size, type the maximum file size in megabytes that you want, and then click OK. You can specify a maximum file size up to 2,047 megabytes.

Increase the connection time-out setting
By default, the IIS connection time-out setting is 120 seconds. To increase the connection time-out setting, follow these steps:
 * 1) Click Start, point to All Programs, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
 * 2) Right-click the virtual server that you want to configure, and then click Properties.
 * 3) Click the Web Site tab. Under Connections, type the number of seconds that you want in the Connection time-out box, and then click OK.

Add the executionTimeout value
 Use Notepad to open the Web.config file.

By default, this file is in the following location:

Program Files\Common Files\Microsoft Shared\Web server extensions\12\TEMPLATE\LAYOUTS

  Add the executionTimeout value that you want. For example, replace the value as follows.

Existing code     Replacement code <location path=&quot;upload.aspx&quot;>  <httpRuntime executionTimeout=&quot;999999&quot; maxRequestLength=&quot;2097151&quot; /> </system.web> </li> After you change the file, click Save on the File menu.</li> Use Notepad to open the Web application Web.config file. By default, this file is in the following folder:

Inetpub\wwwroot\wss\VirtualDirectories\

</li>  Change the following line in the file.

Existing line <httpRuntime maxRequestLength=&quot;51200&quot; /> Replacement line <httpRuntime executionTimeout=&quot;999999&quot; maxRequestLength=&quot;51200&quot; /> </li> After you change the file, click Save on the File menu.</li> Exit Notepad.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
On Windows Server 2008 computer that has IIS 7.0-only installations, you add the maxAllowedContentLength value. When you are running Windows SharePoint Services on Window Server 2008 that has IIS 7.0, you find that you cannot upload files that are larger than 28 MB even though you have configured the large file upload settings.

To work around this problem, set in the Web.config file for the Web application to have following settings under the section:  Use Notepad to open the Web application Web.config file. By default, this file is in the following folder:

Inetpub\wwwroot\wss\VirtualDirectories\VirtualDirectoryFolder

</li> Add the following settings under the section of the Web.config file:

<system.webServer> <requestFiltering><requestLimits maxAllowedContentLength=&quot;52428800&quot;/></requestFiltering> </system.webServer>

</li></ul>

Note maxAllowedContentLength=&quot;52428800&quot; in bytes has to match the size of file that you are trying to upload. Also, when you set the number, increase it slightly beyond the maximum file upload size that you have configured in SharePoint. If the number is equal to or less, users will not receive the error message that they are exceeding the size limit if they try to upload a file size larger than that specified by the administrator.

For more information about the maxAllowedContentLength setting, click the following article number to view the article in the Microsoft Knowledge Base:

942074 Error message when you visit a Web site that is hosted on a server that is running Internet Information Services 7.0: &quot;HTTP Error 404.13 - CONTENT_LENGTH_TOO_LARGE&quot;

Additional query words: WSSv3

Keywords: kberrmsg kbtshoot kbprb kbexpertiseinter KB925083

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.