标签:
错误信息:
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
标签:
原文地址:http://www.cnblogs.com/tianxue/p/4561912.html