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

Author Message
winona
[View user's profile]

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

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
martin◆
[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?
Advertisements

You can post new topics in this forum

Search

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License