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

后端 未结 1 791
隐瞒了意图╮
隐瞒了意图╮ 2021-01-04 05:12

I have a powershell script that I am trying to execute from WCF REST service.I am using the System.Management.Automation and System.Management.Automation.

相关标签:
1条回答
  • 2021-01-04 05:32

    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.

    0 讨论(0)
提交回复
热议问题