Add-Type : Could not load file or assembly

Advertisement

winona
Joined:
Posts:
1
Location:
Chicago

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,815
Location:
Prague, Czechia

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

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

Reply with quote

Advertisement

You can post new topics in this forum