Post a reply

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)


Topic review


Re: Not able to delete the file after using WinSCP

Make sure you call Session.Dispose at the end of the session.

Your duplicate question on Stack Overflow:
<invalid hyperlink removed by admin>

Not able to delete the file after using WinSCP

I am using WinSCP com library in my vb6 code.
Now it was all working fine in my local, i just deployed WinSCP in Server and ran my program.
From that time i am not able to run the code as it's giving permission denied error.

I dug deep and when i physically go and delete the file i am getting following error:
"The action can't be completed because the file is open in WinSCP: SFTP,FTP,WebDAV and SCP client."