System.Security.Cryptography.Crypt ographicException: Access denied

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
May 22nd, 2015 9:10pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics