You are currently offline, waiting for your internet to reconnect

BUG: Error Message 550 <Filename>: The Process Cannot Access the File Because It Is Being Used by Another Process

This article has been archived. It is offered "as is" and will no longer be updated.
Symptoms
When trying to rename a file immediately after uploading it to a Microsoft FTP server, the following error message might appear:

550 <filename>: The process cannot access the file because it is being used by another process
Resolution
The only known solution to this problem is to retry the operation until the internal lock is released and the operation succeeds. The following is an example of how to retry the operation programmatically using WinInet API calls:
while(!FtpRenameFile (hConnect,szFirstFile, szSecondFile)){     dError=GetLastError();     if(dError==12003)     {          Sleep(25);     }     else     {          // A legitimate error has occurred, insert handler          break;     }}				
Status
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
More information

Steps to Reproduce Behavior

  1. Create a large file (approximately 20 MB).
  2. Open an FTP connection to a Microsoft Internet Information Server (IIS) FTP server using the FTP console application supplied with Windows.
  3. Copy the following text from a text editor, such as Microsoft Notepad, so that the commands will be called as close together as possible.
    put <filename>ren <filename> second						
  4. Paste the commands into the console window.
IIS, Internet Information Server, FTP, PUT, REN, 550, process, another process
Properties

Article ID: 238644 - Last Review: 12/05/2015 15:26:08 - Revision: 4.0

  • kbnosurvey kbarchive kbbug kbftp kbpending KB238644
Feedback