bytes = clientSocket.Receive(buffer, buffer.Length, 0);
Eu uso o seguinte codigo para forçar a conexão com GPRS:
// Create a new 'Uri' object with the specified string.
Uri myUri = new
Uri("http://www.contoso.com"
);
// Create a new request to the above mentioned URL.
WebRequest myWebRequest = WebRequest.Create(myUri);
// Assign the response object of 'WebRequest' to a 'WebResponse' variable.
WebResponse myWebResponse = myWebRequest.GetResponse();
e executo o envio usando :
try
{
FTPFactory ff = new
FTPFactory();
ff.setBinaryMode(true
);
ff.upload(arquivo + "\\EXPORTAR"
+ sequencia + ".ZIP"
);
}
catch
(Exception ex)
{
MessageBox.Show("Erro ao enviar arquivo."
);
ftp_Operacao = false
;
}
quando eu executo o upload ele fica enviando o arquivo e só para quando eu finalizo a aplicação pelo visual studio.
Ele trava exatamente nessa linha
bytes = clientSocket.Receive(buffer, buffer.Length, 0);
na função ReadLine() do FTPFactory. por favor alguem pode me ajudar...