IIS 应用程序池--选中你网站的所配置的应用程序池--右键 选择 “高级配置” --将“加载用户配置文件” 设置为True

X509证书 指定了无效的提供程序类型 System.Security.Cryptography.CryptographicException 错误解决方法

 

 

第二种解决办法:

在加载证书方法时使用以下方法,请注意第三个参数

    
X509Certificate2 cer = new X509Certificate2(cerPath, password, X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.Exportable); 

 

相关文章:

  • 2021-11-16
  • 2021-06-02
  • 2021-07-03
  • 2021-09-19
  • 2021-11-10
  • 2022-12-23
  • 2021-05-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2022-01-06
  • 2021-08-21
相关资源
相似解决方案