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 Friday, May 22, 2015 10:09 PM