Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

My web service is on ftp server. and I want to use it in my web app. I want any tutorial or steps for the same. I did it with my IIS but don't have idea about ftp.
I have credentials of ftp server. When I tried to give the web reference then I got message that

C#
Default credentials are not supported on an ftp request. Parameter name:value


Please give me some solution on it.

regards,
Posted
Comments
comred 20-Jan-12 3:51am    
I want some expert comments and suggestions.....

1 solution

Hi,

Add web reference is for web services/WCF services. What you have here is FTP and you can NOT add a reference to it (it is neither web service nor WCF contract).

What you got to do is use FtpWebRequest Class to programatically get your file from vendor's FTP server.

Here is a sample on how to do this:

Simple FTP[^]
 
Share this answer
 
v2
Comments
comred 20-Jan-12 1:32am    
Ok. as you said I have to create FTPWebRequest class programmatically, but then I have to give reference also programmatically right? The example you have given in the link is a bit complicated to me. If you have another sample then please share it with me. While I am too searching a lot on net but not got proper info. Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900