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

时间:2023-03-09 17:48:35
.NET:System.Security.Cryptography.CryptographicException 的解决办法

详细内容参考此网址: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。