Post a reply

Options
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)

Options

Topic review

martin

Re: Add-Type : Could not load file or assembly

Does it work if you load the assembly from a local path?
winona

Add-Type : Could not load file or assembly

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