Every time I try to Get a file that is more than zero bytes, .NET throws this exception:
----
An unhandled exception of type 'System.IO.Exception' occured in mscorlib.dll
Additional Information: The process cannot access the file "c:\sourcefiles\3COM\3c90x1.exe" because it is being used by another process.
----
It isn't in use by any other process, it can't be, as it wasn't even in existence before the get call. Here's sample code I'm using:
Dim ftp As FTPClient = Nothing
ftp = New FTPClient("ftp.xxx.com")
ftp.Login("xxx", "xxx")
ftp.ConnectMode = FTPConnectMode.PASV
ftp.TransferType = FTPTransferType.ASCII
ftp.Get("c:\sourcefiles\3COM\3c90x1.exe", "/3COM/3c90x1.exe")
I think it has something to do with the subdirectories, as this works if I stay in the root. "c:\sourcefiles\3COM\" exists as a valid directory, and an empty file from /3COM/ on the ftp server works just file.
What am I doing wrong?
thanks...
Jeremy