"dynamic operations can only be performed in homogenous appdomain" error while launching PowerShell "dynamic operations can only be performed in homogenous appdomain" error while launching PowerShell powershell powershell

"dynamic operations can only be performed in homogenous appdomain" error while launching PowerShell


I just googled that error and it seemed to be related to legacyCasPolicy being set to true as discussed here and here. It turns setting it to false resolved your issue as well. Detailed information about this configuration element can be found here.