Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

khalidmehmoodawan

Posts

5

Joined

Fri Feb 12, 2010 4:55 pm

Location

Pakistan

FTPConnection , exception on connect(); statement.

by khalidmehmoodawan » Fri Feb 12, 2010 5:44 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: FTPConnection , exception on connect(); statement.

by support2 » Fri Feb 12, 2010 7:45 pm

no avatar
User

khalidmehmoodawan

Posts

5

Joined

Fri Feb 12, 2010 4:55 pm

Location

Pakistan

by khalidmehmoodawan » Fri Feb 12, 2010 8:35 pm

Thanks dear,
It solved HALF problem, now i am able to connect/login but the next statement which is downloading file giving exception.

statement is :

ftpConnection.DownloadFile(fileName, RemoteFile);
// values of both parameters are ...
// fileName = "D:\\PAT-Software\\ECN\\prjCPLoad\\prjCPLoad\\bin\\Debug\\ftp\\MSC-5__02122010_0310__TS.CPXX.TH1.raw"
// RemoteFile "TS.CPXX.TH1"

Exception thrown:
Command not implemented PRO01EL4 (code 502)


StackTrace is :
Exception :: at EnterpriseDT.Net.Ftp.FTPClient.GetASCII(String localPath, String remoteFile)
at EnterpriseDT.Net.Ftp.FTPClient.Get(String localPath, String remoteFile)
at EnterpriseDT.Net.Ftp.FTPConnection.DownloadFile(String localPath, String remoteFile)
at prjCPLoad.frmCPLoad.mscParser() in D:\PAT-Software\ECN\prjCPLoad\prjCPLoad\Form1.cs:line 117


------------------------ suggest please...
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Fri Feb 12, 2010 10:13 pm

Can you post the log file from ftp.exe (command line)? Set the mode to 'debug'
no avatar
User

khalidmehmoodawan

Posts

5

Joined

Fri Feb 12, 2010 4:55 pm

Location

Pakistan

by khalidmehmoodawan » Fri Feb 12, 2010 10:16 pm

C:\Documents and Settings\khalid.mehmood>ftp 10.175.20.1
Connected to 10.175.20.1.
220 SERVICE READY FOR NEW USER. PRO02OC0
User (10.175.20.1:(none)): FTRDONLY
331 USER NAME OKAY, NEED PASSWORD. PRO01US0
Password:
230 USER LOGGED IN, PROCEED. AUTH0000
ftp> debug
Debugging On .
ftp> get TS.CPXX.WE1 DownloadedFile1.txt
---> PORT 10,114,1,240,28,32
200 COMMAND OKAY. PRO01PT0
---> RETR TS.CPXX.WE1
150 FILE STATUS OKAY; ABOUT TO OPEN DATA CONNECTION. PRO01RS0
226 CLOSING DATA CONNECTION; REQUESTED FILE ACTION SUCCESSFUL. PRO03CC0
ftp: 37474 bytes received in 2.06Seconds 18.16Kbytes/sec.
ftp>

---------------------------------------------

file is downloaded to C:\Documents and Settings\khalid.mehmood
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Sat Feb 13, 2010 9:02 am

Ensure you are transferring in active mode. If it doesn't work in active mode post the fragment of the log file (from edtFTPnet) showing the error.
no avatar
User

khalidmehmoodawan

Posts

5

Joined

Fri Feb 12, 2010 4:55 pm

Location

Pakistan

by khalidmehmoodawan » Mon Feb 15, 2010 3:10 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Mon Feb 15, 2010 8:38 pm

no avatar
User

khalidmehmoodawan

Posts

5

Joined

Fri Feb 12, 2010 4:55 pm

Location

Pakistan

by khalidmehmoodawan » Thu Mar 18, 2010 6:14 pm

however, i have done away with it by using simple windows ftp utility with a bunch of DOS commands...

It works perfect... 8)

Who is online

Users browsing this forum: No registered users and 16 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron