c# - Move/Rename a file using FtpWebRequest -
i trying moving file 1 folder using ftpwebrequest keep getting error 550. code;
var requestmove = (ftpwebrequest)webrequest.create(helper.pathftp + helper.newfolder + file); requestmove.method = webrequestmethods.ftp.rename; requestmove.credentials = networkcredential; requestmove.renameto = "../" + helper.oldfolder + file; requestmove.getresponse();
i can list, upload, download , delete files moving/renaming hopeless. have read several posts both on stackoverflow , other sites , have tried things setting proxy null , adding special characters paths cant find solution works.
the path use in webrequest.create correct can delete must renameto got issue with. ideas?
error 550 means access denied. if ftp user has sufficient rights, program (e.g. antivirus, windows thumbnail generator etc) have file opened , deny move request.
you need contact server administrator around problem.
Comments
Post a Comment