PSM WebApp fails to generate TOTP - CAS policy error.

PSM WebApp fails to generate TOTP - CAS policy error.

113
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 15:58 PM


Symptom


PSM WebApp unable to generate TOTP code with error:

==

[22/05/2026 | 11:56:58] | :: | PSMDU018E Dispatcher error: [CommandsExecuter :: RunCustomLogicCommand -> Details : System.Exception: Failed to generate MFA code. Exception: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.


at Cyberark.Extensions.GenerateTOTPCode.GenerateTOTPCode.ExecuteCustomLogic(IInputParameters inputParameters)


[22/05/2026 | 11:56:58] | :: | at CyberArk.WebAutomationCommon.Commands.ExecuteCustomLogic.ExecuteCustomLogic.Run(CommandsParameters commandsParameters)]

==



Environment


14.2;14.6;15.0 Privilege Cloud Privilege Cloud PSM

PSM WebApp.

Built-in PSM TOTP MFA Generation.



Cause


Internet downloaded files blocked by OS.



Resolution


To resolve this, run:

==

Get-ChildItem -Path "C:\Program Files (x86)\CyberArk\PSM\Components" -Recurse | Unblock-File

==




Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000015STCAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail