Hi,
While generating a retention receipt inside of an invoice journal the process stops in a method that validates the FTP
protected void validateFtp() { object ftpo = null; System.Net.FtpWebRequest request = null; System.Net.NetworkCredential credential = null; System.Net.FtpWebResponse response; ElectronicFTP electronicFTP = ElectronicFTP::find(); ; try { ftpo = System.Net.WebRequest::Create(@"ftp://" electronicFTP.FtpAddress); request = ftpo; credential = new System.Net.NetworkCredential(electronicFTP.UserName, electronicFTP.Passwd); request.set_Credentials(credential); request.set_Method("NLST"); request.set_Proxy(System.Net.GlobalProxySelection::GetEmptyWebProxy()); response = request.GetResponse(); //HERE IT STOPS request.Abort(); response.Close(); } catch { infolog.add(Exception::Error, "No se encuentra disponible el sitio Ftp"); throw Exception::Error; } }
If there is no response, why it didnt catch the error if it is inside a try catch. It doesn't pop any error message but it doesn't generate any retention receipt, it just doesn't do anything. What could be the problem here?