I am trying a very simple provider hosted app. it work fine during debug but when i try to published to iis and got this error
System.Security.Cryptography.CryptographicException: Access denied.
on TokenHeper.cs line below
private static readonly X509Certificate2 ClientCertificate = (string.IsNullOrEmpty(ClientSigningCertificatePath) || string.IsNullOrEmpty(ClientSigningCertificatePassword)) ? null : new X509Certificate2(ClientSigningCertificatePath, ClientSigningCertificatePassword);
- Edited by VietP 9 hours 27 minutes ago