1、关于remote server returned an error:550错误信息(File unavailable)
调试了半天,结果是自己写的ftp路径写错了,反一个反斜杠,记录下来以便日后警醒。
/// <summary>
/// 创建FtpWebRequest
/// </summary>
/// <param name="uriString">FTP路径</param>
/// <param name="method">FTP方法</param>
private void OpenRequest(string uriString, string method)
{
this.request = WebRequest.Create(new Uri(this.requestUriString + "//" + uriString)) as FtpWebRequest;
this.request.Credentials = new NetworkCredential(userName, password);
this.request.UseBinary = true;
this.request.Proxy = null;
this.request.KeepAlive = false;
this.request.Method = method;
}