Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

That means your SFTP server does not support checksums. And you also do not have a shell access, so WinSCP cannot use a fallback mechanism of calculating checksums using shell commands.
geek569

Got
Synchronization error: Server refused to start a shell/command
geek569

I'm using NuGet but the v6.4 not published yet.
I tried to overwrite WinSCP.exe and WinSCPnet.dll but I got:
Method not found: 'Void System.Threading.EventWaitHandle..ctor(Boolean, System.Threading.EventResetMode, System.String, Boolean ByRef, System.Security.AccessControl.EventWaitHandleSecurity)'.
martin

Re: "Invalid access to memory" with SynchronizationCriteria.Checksum

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.
geek569

the log file
martin

Re: "Invalid access to memory" with SynchronizationCriteria.Checksum

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.
geek569

"Invalid access to memory" with SynchronizationCriteria.Checksum

session.SynchronizeDirectories(SynchronizationMode.Remote, @"D:\test\", "/test", true, mirror: true, criteria: SynchronizationCriteria.Checksum);

this above code throws:
Error: WinSCP.SessionRemoteException: Invalid access to memory. at WinSCP.OperationResultBase.Check()

the exception is gone by removing
criteria: SynchronizationCriteria.Checksum