FTP server returned 500 error with ASP.NET C#

Posted by ffffff on Stack Overflow See other posts from Stack Overflow or by ffffff
Published on 2009-07-07T10:44:34Z Indexed on 2010/04/16 2:03 UTC
Read the original article Hit count: 325

Filed under:
|

I 'm developing FTP exe ASP.NET?C#2.0 .

but I FTP server returned 500 error

FtpWebRequest myReq; 
FtpWebResponse myRes; 

myReq = (FtpWebRequest)WebRequest.Create("ftp://test/aaa.txt"); 
myReq.Credentials = new NetworkCredential("xxxx", "xxxx"); 

myReq.Method = WebRequestMethods.Ftp.DownloadFile; 
myRes = (FtpWebResponse)myReq.GetResponse(); // here error occured

What's wrong?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#