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

Notifications

Announcements

No record found.

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)
  • Blue Wang Profile Picture
    on at

    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?

  • Verified answer
    WillWU Profile Picture
    22,361 on at

    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.

  • babalalex Profile Picture
    411 on at

    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.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans