CP - CyberArk.AIM.NetPasswordSDK.Exceptions.PSDKException: Could not load type

CP - CyberArk.AIM.NetPasswordSDK.Exceptions.PSDKException: Could not load type

109
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:54 PM


Symptom


Application built in .Net Core fails with below error - 

--
CyberArk.AIM.NetPasswordSDK.Exceptions.PSDKException: Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
---


Environment


12.0;12.1;12.2;12.4;12.3;12.5;12.6 Privileged Access Manager (PAM, self-hosted) Credential Provider Credential Provider

Cause


The application code is loading the wrong .Net SDK Dll.

Resolution


In CP 12 series support for applications built in .NET Core version 2.0 and later is introduced. Earlier only applications built using .NET Framework version 4.5.2 and later were supported. In CP 12 Series Support for both types applications is introduced.

Two .NET SDKs are included in the CP installable in CP 12.0 onwards  to support both above mentioned application types - 

--> Use .NET Standard for applications built using .NET Core version 2.0 and later ;
** ' .NET Standard ' refers to 'NetStandardPasswordSDK' in the package

-->Use .NET Framework for applications built using .NET Framework version 4.5.2 and later
** ' .NET Framework' refers to 'NetPasswordSDK' in the package

This is mentioned in the official documentation, under '.NET Application Password SDKs' and under 'Credential Provider supports applications built using' sections.

Source:
https://docs.cyberark.com/Product-Doc/OnlineHelp/AAM-CP/Latest/en/Content/CP%20and%20ASCP/Net-Application-Password-SDK.htm

Paths to SDK DLL filess:
C:\Program Files (x86)\CyberArk\ApplicationPasswordSdk\
NetPasswordSDK.dll
NetStandardPasswordSDK.dll



 


Actions
  • Print
  • Copy Link

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