Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
9.9k views
in .NET FTP by (240 points)
Hello,

I am using version 2.0.0.0 of edt FTP Net Free with C# .NET 2.0.

Everything works fine, I can get file, I can move throught the file tree.
An exception occurs when I want to put file and only.
I know the file is not existing, I have all read /write rigths (I can put file using windows XP ftp command) but using your librairie, on putting a file, I get the following error :


Error message

Can't build data connection for 10.X.X.X,2470 connect to network object rejected (code=425)


Stack trace

11 Answers

0 votes
by (162k points)
When you upload a file, FTP creates a new socket to transfer the data.

This is failing. Check that the IP address 10.x.x.x is actually reachable by your client (perhaps a firewall is blocking it). If you can't resolve, post the log file here.
0 votes
by (240 points)
The server is reachable by my client since, with my application, i can get file, get directory listing, navigate (ChDir, ChUp) etc ...
I cannot only put file. More on the same PC as my application i can put file manually using FTP in Win XP command line.

Server is a VMS one. For the moment i didn't have any control on server, so I cannot get log files from it.

Finally, I tried to use both put methods, with append flag and without it. Using append method with true flag, the file is created on the server but contains nothing.
0 votes
by (240 points)
I did some new tests.
I compiled component's sources and used it in debug mode.
The problem is not due to network.
Error is in fact the answer of the VMS FTP server. Maybe implemented protocol between edt component and FTP server is not correct for this type of VMS server.

When component sends the STOR command to server (STOR LOGICALNAME:[DATA.RFD.DOSSIER]document.xml), FTP server answers "425-Can't build data connection for 10.X.X.X,2470 connect to network object rejected", each time you want to put a new file. Exception comes from FTPControlSocket.ValidateAnswer
There is another behavior using put append method.
As I said on my last post, when you are using put append method, file is created but contains nothing. If you repeat twice put append method, second time, put method succeeds and the file is available on FTP server.

This is not very sexy but it 's working. Unless somebody can tell me how to do, i will have to give up.

++
0 votes
by (162k points)
I just saw that it works with Windows FTP command. If this works then the component should work.

Windows FTP uses active mode - change to active mode transfers and see how that goes. The default is passive mode.
0 votes
by (240 points)
I just saw that it works with Windows FTP command. If this works then the component should work.

Windows FTP uses active mode - change to active mode transfers and see how that goes. The default is passive mode.


Bravo !

This is the solution.
Thank you very much. It is working fine now.

++
0 votes
by (140 points)
im having same troubles here.. any help would be great!


commission de surendettement - commission de surendettement, vous pouvez demander un dossier de surendettement.
0 votes
by (162k points)
more info please. Log file or stack trace?
0 votes
by (140 points)
Thanks for sharing this useful information. It's great.

plan solution commission de surendettement - commission de surendettement, vous pouvez demander un dossier de surendettement.plan solution commission de surendettement
0 votes
by (140 points)
I cannot get log files from it.

proprietaire simulation rachat credit immobilier consommation - demander un rachat de cr
0 votes
by (162k points)
search the forums or read the documentation for how to enable logging

Categories

...