Hi, my name is gavonas. I'm having an issue with a file transfer. We have 3 computers in 3 different cities that require them to be able to send and receive certain files. Lately I have been getting the error "426 connection closed" on certain files. Filezilla is set to passive mode, all firewalls are turned off. The error only happens on random files. Example I had a 412kb text file I was trying to send. It would only send 288kb before giving that error and always sent to the exact same line. I added 3 more lines of text to the file and it sent fine.
The method i'm using to send and receive is a vb.net program code looks like this
Dim request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://" & strAddress & "/1.txt"), System.Net.FtpWebRequest)
request.Credentials = New System.Net.NetworkCredential(strUserName, strPassword)
request.KeepAlive = True
request.Method = System.Net.WebRequestMethods.Ftp.DownloadFile
Dim webresponse As System.Net.WebResponse = request.GetResponse
Dim strz As System.IO.Stream = webresponse.GetResponseStream
I don't see a problem with the code and I don't know why it only happened on that one file. Before giving me the general response on every other 426 connection closed thread with the Network Configuration link I would like to let you know that I have been going through that for the past 5 hours and still haven't found anything that can explain why it wouldn't send the 412kb file while adding 3 lines making it a 413kb file sent fine.
The method i'm using to send and receive is a vb.net program code looks like this
Dim request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://" & strAddress & "/1.txt"), System.Net.FtpWebRequest)
request.Credentials = New System.Net.NetworkCredential(strUserName, strPassword)
request.KeepAlive = True
request.Method = System.Net.WebRequestMethods.Ftp.DownloadFile
Dim webresponse As System.Net.WebResponse = request.GetResponse
Dim strz As System.IO.Stream = webresponse.GetResponseStream
I don't see a problem with the code and I don't know why it only happened on that one file. Before giving me the general response on every other 426 connection closed thread with the Network Configuration link I would like to let you know that I have been going through that for the past 5 hours and still haven't found anything that can explain why it wouldn't send the 412kb file while adding 3 lines making it a 413kb file sent fine.