Results 1 to 3 of 3

Thread: File on FTP Server is locked after FtpGetFile

  1. #1

    Thread Starter
    Lively Member rekcus's Avatar
    Join Date
    Jan 1999
    Location
    Kuala Lumpur
    Posts
    122

    Exclamation

    Operations:

    1 FTP Server running on IIS offers ftp service.
    2 I write a VB ftp program to download a file.
    3 To download the file I run the API:

    bRet = FtpGetFile(hConnection, szFileRemote, szFileLocal & "/" & szFileRemote, False, _
    INTERNET_FLAG_RELOAD, dwType, 0)

    4 File download successful.

    Problem: File is locked on the server. It cannot be deleted or updated. Restarting IIS doesn't help. Only way to unlock file is to restart the server.


    Any clues as to why this happens?

    Thanks,
    penyou!

    "The code bytes.."

  2. #2

  3. #3

    Thread Starter
    Lively Member rekcus's Avatar
    Join Date
    Jan 1999
    Location
    Kuala Lumpur
    Posts
    122

    Unhappy yes....... that was it!

    Yo dj4, thanks a bunch.

    But check out the workaround suggested by MSoft:

    First:
    To work around this problem, use a different editor or use the Registry Editor to disable caching of file handles.

    WARNING: Disabling caching of file handles may seriously impact the performance of your Internet Information Server computer. Use this workaround with caution.

    WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.
    Second:
    This problem was corrected in Internet Information Server 5.0.
    Regs,

    penyou!

    "The code bytes.."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width