I want to upload file to ftp server using webservice i have done all code but still getting error of Access is denied on local file path
in putfiles function i have given everyone rights to folder
below is error from transferresult.check() line.
and also i get filename invalid error sometimes on same line.
Please help me ASAP
08-10-2016 10:58:06 PM_WinSCP: Error is reported by the remote server; Local error occurs in WinSCP console session, such as error reading local file.
Message:Error transferring file 'D:\Work\OCR schedulers\FTPFilehandling_ASMX\FTPFilehandling_ASMX\test\soc.jpg'.
Copying files to remote side failed.
Access is denied.
Win32 error: Access is denied.
Error details: File system denied the access.
Target Site:Void Check()
Stacktrace: at WinSCP.OperationResultBase.Check()
at FTPFilehandling_ASMX.Service1.UploadFile(String Frompath, String Topath, String hostName, String userName, String password, Int32 port, Protocol mode, String Fingerprint) in D:\Work\OCR schedulers\FTPFilehandling_ASMX\FTPFilehandling_ASMX\FTPFilehandling.asmx.cs:line 116