Microsoft KB Archive/238644

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

Article ID: 238644

Article Last Modified on 10/24/2003

-

APPLIES TO


 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q238644



SYMPTOMS
When trying to rename a file immediately after uploading it to a Microsoft FTP server, the following error message might appear:

550 : 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.



Steps to Reproduce Behavior
 Create a large file (approximately 20 MB). Open an FTP connection to a Microsoft Internet Information Server (IIS) FTP server using the FTP console application supplied with Windows.  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 ren second  Paste the commands into the console window.

Additional query words: IIS, Internet Information Server, FTP, PUT, REN, 550, process, another process

Keywords: kbbug kbftp kbpending KB238644

-

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

© Microsoft Corporation. All rights reserved.