码迷,mamicode.com
首页 > 其他好文 > 详细

ThrowCryptogaphicException

时间:2015-06-08 21:22:39      阅读:257      评论:0      收藏:0      [点我收藏+]

标签:

错误信息:

System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
在 System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromFile(String fileName, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx)
在 System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(String fileName, Object password, X509KeyStorageFlags keyStorageFlags)
在 System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password)
在 Better.AlipayInterface.InterfaceUtility.GetRequestResult(String requestUrl, Int32 timeout, SendMethod requestMethod, String codeName, String certFile, String certPasswd)

 

解决方法:

http://stackoverflow.com/questions/9951729/x509certificate-constructor-exception

 

即:应用程序池--->高级设置--->加载用户配置文件设置为True

 

ThrowCryptogaphicException

标签:

原文地址:http://www.cnblogs.com/tianxue/p/4561912.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!