I'm trying to download a FTP file from one of our clients, but in production it fails with this message: "Operation timeout exceeded", but if you try to open the FTP location from browser, it opens without problem. During develop this happened because of the proxy, but also blocked the browser. In production, the proxy was shutdown but still fails. I need help with this.
This is the code for the download
using (WebClient vloftpClient = new WebClient())
{
vloftpClient.Credentials = new System.Net.NetworkCredential(vlcUsuario, vlcClave);
vloftpClient.DownloadFile(@vlcUbicacionOrigen + @"/" + vlcNombreArchivoOrigen, pvcUbicacionDestino + @"/" + pvcProveedor + "_" + vlcNombreArchivoDestino);
}