web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

FTP upload with System.Net.FtpWebRequest - Error 550

(0) ShareShare
ReportReport
Posted on by 411

Hi folks,

I have been really struggling to upload the text file generated after Report As Finished Posting, on FTP server location.

While uploading I am getting one error, in the following line

requestStream = ftpRequest.GetRequestStream();

Error : The remote server returned an erro :(550) File unavailable (eg. file not found, no access)

Now I am not getting any headway for this error as,

I am able to access the FTP location through File Explorer and have all the permissions.

Help would be grateful.

Thanks.

 

I have the same question (0)
  • babalalex Profile Picture
    411 on at
    RE: FTP upload with System.Net.FtpWebRequest - Error 550

    Hey Thanks Will.

    It worked for me.

    I just focussed on,

    pastedimage1577967814567v1.png

    And made the changes like file name, Login and Pwd carefully. 

    So worked.

  • Verified answer
    WillWU Profile Picture
    22,361 on at
    RE: FTP upload with System.Net.FtpWebRequest - Error 550

    Hi Babalalex,

    Have a look at this blog:

    https://mfmujahidmim.wordpress.com/2016/09/13/uploading-a-%E2%80%8Bfile-to-ftp-server-through-x-with-detail-explanation/

    You should pay attention to the following points:

    1,The file name must not have spaces and colons in it otherwise it throws error.

    2,Make sure you must have proper file path otherwise, it throws an error.

    Hope this helps.

  • Blue Wang Profile Picture
    on at
    RE: FTP upload with System.Net.FtpWebRequest - Error 550

    Hi Babalalex,

    Did you give the full file path including the file name in your code?

    Such as:

    Uri serverUri = "ftp://ftp.example.com/home/example/example.pdf";
    FtpWebRequest request = (FtpWebRequest)WebRequest.Create(serverUri);

    Can you upload a bit more about your code?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,339

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 824 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 600 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans