FTp componenet for .Net c#

Anybody knows a good ftp component in c#. I ahve search google and i found lots of them but I am just curiouse to see other programmers experince with them. Any good suggestion?
LVL 2
prokniAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

martinvCommented:
You could try http://www.rebex.net/ftp.net and http://www.rebex.net/ftp.net/samples.aspx.

I really like it, but you could not trust me :-), as I'm biased (I work for Rebex)...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
msdixonCommented:
here's a simple winapi wrapper that i've used

using System;
using System.Runtime.InteropServices;
public class Ftp
{
   #region CloseConnection
   [DllImport("WININET.DLL", EntryPoint="InternetCloseHandle")]
   public static extern int CloseConnection(int HINet);
   #endregion

   #region Open
   [DllImport("WININET.DLL", EntryPoint="InternetOpenA")]
   public static extern int Open(string sAgent, int lAccessType, string sProxyName, string sProxyBypass, int lFlags);
   #endregion
       
   #region Connect
   [DllImport("WININET.DLL", EntryPoint="InternetConnectA")]
   public static extern int Connect(int hInternetSession, string sServerName, int nServerPort,
      string sUsername, string sPassword, int lService, int lFlags, int lContext);
   #endregion
   #region PutFile
   [DllImport("WININET.DLL", EntryPoint="FtpPutFileA")]
   public static extern bool PutFile(int hFtpSession, string lpszLocalFile, string lpszRemoteFile,
      int dwFlags, int dwContext);
   #endregion
   #region MakeDir
   [DllImport("WININET.DLL", EntryPoint="FtpCreateDirectoryA")]
   public static extern bool MakeDir(int hFtpSession, string Directory);
   #endregion
   #region FtpGetCurrentDirectoryA
   [DllImport("WININET.DLL", EntryPoint="FtpGetCurrentDirectoryA")]
   public static extern string GetCurrentDirectory(int FtpSession, string Directory);
   #endregion
   #region GetFile
   [DllImport("WININET.DLL", EntryPoint="FtpGetFileA")]
   public static extern bool GetFile(int hFtpSession, string lpszRemoteFile, string lpszNewFile,
      bool fFailIfExists, int dwFlagsAndAttributes, int dwFlags, int dwContext);
   #endregion
}




************* usage ******************
         int inetSsn = Ftp.Open("WebClientFtpTransfer", 0, null, null, 0);
         if (inetSsn == 0)
         {
            lblResults.Text += "<span class=\"Error\">Could not connect to the FTP Server</span><br>";
            return;
         }
         int ftpSsn = Ftp.Connect(inetSsn, ftpServer, 21, ftpUser, ftpPw, 1, 0, 0);

         // check to see if Internet session was successful
         if (ftpSsn == 0)
         {
            lblResults.Text += "<span class=\"Error\">Could not connect to FTP Server: " + ftpServer + "</span><br>";
            return;
         }

// ftpsession is the variable from the connect method
// local is the fully qualified path for the local file
// remote is the relative path and file name on the server
                  if (!Ftp.PutFile(FtpSession, local, remote, 0, 0))
                  {
                     ret.Append("<span class=\"error\">Error copying file: " + remote.Replace(FtpDirectory, "") + "</span><br>");
                     return ret;
                  }

         Ftp.CloseConnection(ftpSsn);
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.