Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

daveinca

Posts

12

Joined

Wed May 04, 2011 1:33 am

Location

Roseville, CA

Stream close System.IO.IOException

by daveinca » Fri Jun 03, 2011 7:48 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Stream close System.IO.IOException

by support2 » Fri Jun 03, 2011 10:11 am

It certainly looks like a server timeout. The other possibility is a firewall timeout - the firewall then kills the connection.
no avatar
User

daveinca

Posts

12

Joined

Wed May 04, 2011 1:33 am

Location

Roseville, CA

Re: Stream close System.IO.IOException

by daveinca » Sat Jun 04, 2011 12:57 am

So is there any way to handle a problem like this? Do you have any example code that deals with this kind of situation? Would using the FTPconnectionClosedException class be the way to handle this problem?

I would guess that if this problem occurs, the software should be able to detect it and then reconnect and resume sending the file. Does that sound like the right way to proceed? If so, is there example code that demonstrates this?

Again, any help and especially example code, would be appreciated.
no avatar
User

daveinca

Posts

12

Joined

Wed May 04, 2011 1:33 am

Location

Roseville, CA

Re: Stream close System.IO.IOException

by daveinca » Sat Jun 04, 2011 2:22 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Stream close System.IO.IOException

by support2 » Sat Jun 04, 2011 6:55 am

no avatar
User

Nigel

Posts

3

Joined

Fri Jun 24, 2011 12:14 pm

Location

Brisbane

2 Queries

by Nigel » Fri Jun 24, 2011 12:23 pm

Query1
Why is it that you call the .UploadStream() after the .ResumeTransfer()?
Isn't it not needed?

Query2
Is this still necessary if all of the bytes have been transferred?
My code seems to fail despite every byte having been uploaded already. (Mind you, it gives a EnterpriseDT.Net.Ftp.ControlChannelIOException)
no avatar
User

Nigel

Posts

3

Joined

Fri Jun 24, 2011 12:14 pm

Location

Brisbane

Re: 2 Queries

by Nigel » Fri Jun 24, 2011 1:04 pm

Nevermind about Query 1 - I just looked at the docs again and noticed the "Makes the NEXT transfer" bit.

Nevermind about Query 2 - I found your other post that answers it.

Who is online

Users browsing this forum: No registered users and 34 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron