Hi HuangTM
Thanks for the link that you have sent regarding the sample code.
I tried to run the code behind the proxy server with the following command line arguments
-uftp://64.235.50.69 -pntserver:2121 -v -kutest
roxy -kptestuser:tes
1. ftp://64.235.50.69 is my ftp server
2. ntserver is my proxy server
3. 2121 is the port mapped at my proxy server for FTP
4. "test" is my ftp server's username
5. "proxy" is the password of the ftp server
6. "testuser" is the username of the proxy server to connect to
7. "test" is the password to connect to proxy server
I am not able to connect still to my FTP Server with the above arguments
Some times the application hangs or else I get the error message saying "Couldnt open passive data connection. FTP protocol Error..... Status:500 Description:must be connected to remote server."
I also tried to look into the code but was not clear with code to establish the connection to the proxy Server
Can you please help me out as to where the username/password of the proxy is passed to the socket while connecting to the proxy Server. Also please can you explain me what the "ServicePointManager.FindServicePoint" method does. I tried to read this documentation in MSDN but was not clear with the same
Thanks and Regards
Manish