locked
File transfer using C#, ASP.net RRS feed

  • Question

  • Hi, I am using ASP.Net and c# to upload large files using FTP (FTPWebRequest class).

    But when I am verify my application then it shows that it uses HTTP protocol. So how can I transfer files using FTP and web application. 

    Also please suggest is SFTP file transfer is possible using C# and ASP.Net

    Thanks,

    Parimal

     
    • Moved by Eason_H Monday, December 2, 2013 7:03 AM
    Friday, November 29, 2013 5:02 PM

Answers

  • All ASP and Webrelated question should be asked in the ASP.NEt Forum, you get better answers there:

    http://forums.asp.net/


    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

    • Proposed as answer by Eason_H Monday, December 2, 2013 7:03 AM
    • Marked as answer by Just Karl Monday, December 9, 2013 3:24 PM
    Friday, November 29, 2013 9:40 PM

All replies

  • FTPWebRequest is as you noticed a web (http) request and it doesn't support SFTP.

    If you want to use SFTP you need a third party component, like SharpSSH or WinSCP. You can find more info here:

    https://bitbucket.org/mattgwagner/sharpssh

    http://winscp.net/eng/docs/library#csharp

    Friday, November 29, 2013 5:31 PM
  • All ASP and Webrelated question should be asked in the ASP.NEt Forum, you get better answers there:

    http://forums.asp.net/


    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

    • Proposed as answer by Eason_H Monday, December 2, 2013 7:03 AM
    • Marked as answer by Just Karl Monday, December 9, 2013 3:24 PM
    Friday, November 29, 2013 9:40 PM