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"


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:

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.

Back to the top

Increase the maximum upload size
  1. Click Start, point to All Programs, point to Administrative Tools, and then click SharePoint Central Administration. Then, click Application Management.
  2. Under SharePoint Web Application Management, click Web application general settings.
  3. On the Web Application General Settings page, click the Web application that you want to change.
  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.

Back to the top

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.

Back to the top

Add the executionTimeout value
  1. 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

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

     <location path="upload.aspx"> 
        <system.web> 
          <httpRuntime maxRequestLength="2097151" /> 
        </system.web> 
      </location> 

    Replacement code

     <location path="upload.aspx"> 
        <system.web> 
          <httpRuntime executionTimeout="999999" maxRequestLength="2097151" /> 
        </system.web> 
      </location> 

  3. After you change the file, click Save on the File menu.
  4. Use Notepad to open the Web application Web.config file. By default, this file is in the following folder:

    Inetpub\wwwroot\wss\VirtualDirectories\VirtualDirectoryFolder

  5. Change the following line in the file.
    Existing line

    <httpRuntime maxRequestLength="51200" />

    Replacement line

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

  6. After you change the file, click Save on the File menu.
  7. Exit Notepad.

On a Windows Server 2008 computer that has IIS 7.0-only installations, you add the maxAllowedContentLength value. When you are running Windows SharePoint Services on a Windows Server 2008-based computer 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. Usually, the error that users see is “The page cannot be displayed.” In some circumstances, users may also see an “HTTP 404” error.
To work around this problem, set in the Web.config file for the Web application to have following settings under the <configuration> 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

  • Increase the value of maxAllowedContentLength in the requestLimits node. For example, to set this value to its maximum size, you have this:

    <requestLimits maxAllowedContentLength=”52428800″/>

    Note: If your Web.config file does not already have the <requestLimits> node, you must add it in the proper place in the section hierarchy, which follows this structure:
    <configuration>
    <system.webServer>
    <security>
    <requestFiltering>
    <requestLimits maxAllowedContentLength=”52428800″/>
    </requestFiltering>
    </security>
    </system.webServer>
    </configuration>

Note maxAllowedContentLength=”52428800″ 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 (http://support.microsoft.com/kb/942074/ ) Error message when you visit a Web site that is hosted on a server that is running Internet Information Services 7.0: “HTTP Error 404.13 – CONTENT_LENGTH_TOO_LARGE”

About thangletoan

Hallo Aloha

Posted on 12/05/2012, in Công nghệ và Giáo dục, Chính sách CNTT, SharePoint 2010, WSS 3. Bookmark the permalink. Để lại bình luận.

Gửi phản hồi

Mời bạn điền thông tin vào ô dưới đây hoặc kích vào một biểu tượng để đăng nhập:

WordPress.com Logo

Bạn đang bình luận bằng tài khoản WordPress.com Log Out / Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Log Out / Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Log Out / Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Log Out / Thay đổi )

Connecting to %s

%d bloggers like this: