.NET:System.Security.Cryptography.CryptographicException 的解决办法

问题描述:微信退款提示加载证书失败问题(System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromFile)

详细内容参考此网址:http://social.msdn.microsoft.com/Forums/en-US/ec93922a-fd1e-4225-b5cf-1472ebb3acd1/systemsecuritycryptographycryptographicexception-the-system-cannot-find-the-file-specified?forum=netfxbcl

摘要:

  1. 确定数字证书文件是否存在。
  2. 如果宿主是 IIS,做如下配置:Open IIS7 --> ApplicationPools(应用池) --> YourAppPool -->RighClikck(右键) --> Advanced Settings(高级) ---> Load User Profile(加载用户配置文件)  set this value  to true。
原文地址:https://www.cnblogs.com/xvqm00/p/5009929.html