FTP upload file prompt 550 error cause analysis.

Source: Internet
Author: User
Tags ftp upload file

Test FTP upload file today, the same code from its own demo moved to the formal code, unable to implement the function, and reported

Stream rs = Ftp.getrequeststream () indicates that the remote server returned an error: (550) The file is not available (for example, the file was not found,

Baidu Search Reason:

1. say file permissions;

2. The path is correct;

3. Path is not to add "@"

There are other kinds of statements, one-by-one check not found errors, the key is the same file code, a program can correctly complete the upload, a jump exception.

It suddenly occurred to me that the FTP class hints using System.Linq when copying the code, and namespace errors.

So from then on, using System.Linq; is 3.5 after some, non-demo program is from 2.0 turn over, in the attribute inside into 4.0, referring to using System.Linq;

Everything's fine.

FTP upload file prompt 550 error cause analysis.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.