Microsoft KB Archive/841017

= You cannot upload more than 100 files to an FTP Web site at the same time =

Article ID: 841017

Article Last Modified on 3/20/2007

-

APPLIES TO


 * Microsoft Internet Information Services 5.0
 * Microsoft Internet Information Server 4.0

-



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx





SYMPTOMS
If you try to upload more than 100 files at the same time to a File Transfer Protocol (FTP) site that is hosted by Microsoft Internet Information Server (IIS) 4.0 or Microsoft Internet Information Services (IIS) 5. , only 100 files are uploaded to the site. The remaining files are not uploaded to the FTP site.



CAUSE
In IIS 4.0 and in IIS 5. , uploading files to an FTP site is a synchronous process. Each synchronous process uses a separate thread for running. Only 100 threads can be created. Therefore, you cannot upload more than 100 files at the same time because no threads are available to support uploading more files asynchronously.



STATUS
This behavior is by design.



MORE INFORMATION
You can use Microsoft Internet Information Services (IIS) 6.0 on Microsoft Windows Server 2003 to upload more than 100 files at the same time. In IIS 6.0, file uploading to an FTP site is an asynchronous process, and uploading multiple files does not require multiple threads. Therefore, the way IIS 6.0 uses threads is different from the way that earlier versions of IIS use threads when you upload multiple files to the FTP site at the same time.

Steps to reproduce the problem
To reproduce the problem, create and run an FTP Web site, and then upload the files to the FTP Web site.

Note You cannot reproduce this problem if the FTP Publishing Service is not installed on the computer that is running IIS 4.0 or IIS 5.x. You also cannot reproduce this problem if you block the FTP communication from entering the network.

Create and run an FTP site

 * 1) Click Start, and then click Run. The Run dialog box appears.
 * 2) Type inetmgr in the Open box, and then click OK. The Internet Information Services window appears.
 * 3) Expand.

Note  is a placeholder for the name of your computer.
 * 1) Right-click Default FTP Site, point to New, and then click Site. The FTP Site Creation Wizard starts.
 * 2) Click Next. The FTP Site Description page appears.
 * 3) Type  in the Description box, and then click Next. The IP Address and Port Settings page appears.

Note  is a placeholder for the name of the FTP site that you want to create.
 * 1) Type   in the IP address box, and then click Next. The FTP Site Home Directory page appears.

Note  is a placeholder for the Internet Protocol (IP) address of the FTP site.
 * 1) Type the path of the directory that you want to use as your home directory in the Path box, and then click Next. The FTP Site Access Permissions page appears.

Note You can also locate the directory by using the Browse button instead of by typing the path.
 * 1) Click to select the Write check box, and then click Next.
 * 2) Click Finish to close the FTP Site Creation Wizard.

Upload the files to the FTP Web site
 Download and run the Myftp.exe file.

The following file is available for download from the Microsoft Download Center:

Download the Myftp.exe package now.

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. In the FTP Test dialog box, type  in the FTP Server Address box.

Note  is a placeholder for your IP address. Type in the User Name box, and then type  in the Password box.

Note  is a placeholder for the user name of your computer, and   is a placeholder for the password of your computer. Type a number that is larger than 100 in the Number Of Connections box, and then click Upload. After the files are uploaded, locate the directory that you selected as the home directory in the &quot;Create and run an FTP Web site&quot; section. You notice the behavior that is mentioned in the &quot;Symptoms&quot; section.</li></ol>

<div class="references_section">