111,120
社区成员
发帖
与我相关
我的任务
分享
代码部分using (WebClient webClient = new WebClient())
{
string userName = ConfigurationManager.AppSettings["username"];
string passWord = ConfigurationManager.AppSettings["password"];
webClient.Credentials = new NetworkCredential(userName, passWord);
Uri uri = new Uri(remotingFile);
webClient.DownloadFile(remotingFile, localFile);
} debug跟踪下载路径参数见截图
异常远程服务器返回错误: (550) 文件不可用(例如,未找到文件,无法访问文件)。求指导