I have a windows service wich transfers files from local network FTP Site, through Local network FilesServer, to a Remote FTP Site (Outside Organisation Network)
I am using an .NET library with namespace "EnterpriseDT.Net.Ftp".
I tested service within our organisation network and it works fine, but when I'm trying to upload files remotly (outside our network) it failes.
I Should allso mention that I am able to log in and upload files to remote FTP Site using 3-rd Application Tools and also Command Prompt Window.
This is the code:
After I made a connection and authentication I am using these method to upload files to remote FTp site:
If ftp Is Nothing Then
ftp = New FTPClient
'If Not ftp.IsConnected
= 480 * 1000 ' 480 seconds, LeechFTP default connection timeout
'TODO: Set FTP IP Address
Dim url As New System.Uri("ftp://111..11.11.11/
") 'IP Address
'TODO: Set User and Password for FTP Site
"C:\FOLDER_NAME\" & FileName, filename) '****** This is main method for uploading the files********
This is the exception text:
Task with ID Ftp failed on 5/18/2006 11:41:20 AM with message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. Stack trace:
srcStream, String remoteFile, Boolean append)
localPath, String remoteFile, Boolean append)
localPath, String remoteFile)
ad() in C:\PROJEKTIFTP\FTP2\Mediam
url, String saveTo, Boolean disconnect, Boolean& failures) in C:\PROJEKTIFTP\FTP2\Mediam
Please if any one can provide me with any information !!??