Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.2k views
in .NET FTP by
When I call Quit or QuitImmediately, it never returns...even if I set the Timeout property to something like 1 or 2. This only occurs if my Put() fails.

I log in fine.

I do a Put and I get an error of access denied (this was expected since we are testing).

I then, if IsConnected, do a Quit(), but this never returns. Any ideas?

Also, how do I check if the last command was ok?

I'm running both the client and FTP server on Windows Server 2003. The FTP Server is normal IIS one.

Amil

4 Answers

0 votes
by (162k points)
Post a log file ...

When I call Quit or QuitImmediately, it never returns...even if I set the Timeout property to something like 1 or 2. This only occurs if my Put() fails.

I log in fine.

I do a Put and I get an error of access denied (this was expected since we are testing).

I then, if IsConnected, do a Quit(), but this never returns. Any ideas?

Also, how do I check if the last command was ok?

I'm running both the client and FTP server on Windows Server 2003. The FTP Server is normal IIS one.

Amil
0 votes
by
How do I create a log file?
0 votes
by (162k points)
Read the Developer's Guide or look at the test code.

How do I create a log file?
0 votes
by
OK, so I'm a bonehead. The access denied exception was being thrown and I was not catching it. Since the transfer was in a different thread, I didn't realize it. Plus, debugging another thread in C# made it appear the Quit() was not returning in debug mode.

So, my bad! Seems to work now if I catch the exception.

Amil

p.s. Thanks for info about the logger!

Categories

...