challenges while usind WinSCP Dll in Webservice

Advertisement

siddheish
Joined:
Posts:
2
Location:
India

challenges while usind WinSCP Dll in Webservice

Hi,


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.
End
Target Site:Void Check()
Inner Exception:
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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,253
Location:
Prague, Czechia

Re: challenges while usind WinSCP Dll in Webservice

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, set Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

siddheish
Joined:
Posts:
2
Location:
India

Re: challenges while usind WinSCP Dll in Webservice

martin wrote:

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, set Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.



First of All is it possible to use Winscp DLL assembly c# in Webservice if so Please give me proper guide for that because i m getting so much challenges than applying it in windows application
I have attached log please check.
  • test.txt (7.67 KB, Private file)
Description: Session log

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,253
Location:
Prague, Czechia

Re: challenges while usind WinSCP Dll in Webservice

The error comes from the server. It's most probably Windows server, so that's why the message wording ("Win32 error") gives impression that it's referring to a local file.

So your issue has nothing to do with uploading from a webservice.

Are you able to upload the file to the server any other way? e.g. from WinSCP GUI? Show us a log!

Reply with quote

Advertisement

You can post new topics in this forum