Hi,
I’m trying to connect to a MongoDB instance from a PSU script:
import-module Mdbc
Connect-Mdbc -ConnectionString “mongodb://localhost:27017” -DatabaseName “JDEInfo” -CollectionName E1Customers
Get-MdbcData
The script run fine from VSCode, but I get this error then run in PSU:
[12:48:53 PM] [ERR] Could not load type ‘System.Runtime.Remoting.Messaging.CallContext’ from assembly ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
Any help greatly appreciated