Topic "Add-Type : Could not load file or assembly"

Author Message
[View user's profile]

Joined: 2017-09-13
Posts: 1
Location: Chicago

I am using the ps script to retrieve a file from the FTP server and i get the below error.

I do not have any block on my WinSCPnet.dll file. Please help.

Add-Type : Could not load file or assembly 'file://\\sapfilesrv03.csgsap.csg-it
.net\sap$\interfaces\PRD\BBG\Concur\Sourcecode\WinSCPnet.dll' or one of its
dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
At G:\SAP\RedwoodCPSLogFiles\jobs\7128\6970\script.ps1:3 char:1
+ Add-Type -Path $dllpath
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
Does it work if you load the assembly from a local path?

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License