Topic "challenges while usind WinSCP Dll in Webservice"

Author Message
siddheish
[View user's profile]

Joined: 2016-10-09
Posts: 2
Location: India
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
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.
siddheish
[View user's profile]

Joined: 2016-10-09
Posts: 2
Location: India
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

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
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!
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License