Hello,
I have an issue when trying to load an assembly mscorlib.dll
even using
Import-module or [System.Reflection.Assembly]::LoadWithPartialName(‘mscorlib.dll’)
i always have an error message like this : Could not load file or assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
I tried to launch it from a powershell script with same user (autorite nt\système) without any issue.
mscorlib is used by the .NET Framework and not .NET 6.0, which is what PSU is running as.
What I would recommend would be to go to Settings \ General \ Environments and set your API Environment to WIndows PowerShell. This would ensure that your API is running using the .NET Framework and should have that loaded automatically.