Powershell : Could not load file or assembly winscp.dll
I have to create a powershell script to automate file transfer.
To load winscp I try this command :
[Reflection.Assembly]::LoadFrom("winscp\WinSCP.dll") | Out-Null
I check winscp.dll file properties and unblock the file.Could not load file or assembly 'file:///winscp\WinSCP.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Thanks for your help.