Re: Could not load file or assembly
Hello,
I am trying to upload a file to an ftp site using winscp 5.1.5 through PowerShell but get the following error:
Could not load file or assembly 'WinSCP.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
you have to add the path to where the dll is located.
# Load WinSCP .NET assembly
Add-Type -Path "C:\Program Files (x86)\WinSCP\WinSCPnet.dll"
this is for a 64 bit machine of course.