Service Web服务和X509

Service Web服务和X509,service,x509certificate,Service,X509certificate,使用x509证书对客户端进行身份验证时,我的web服务中出现以下错误 X509Certificate2 Clnt=新的X509Certificate2 HttpContext.Current.Request.ClientCertificate.Certificate 错误是 System.Web.Services.Protocols.SoapException:服务器无法处理请求。-->System.Security.Cryptography.CryptographyException:m_sa

使用x509证书对客户端进行身份验证时,我的web服务中出现以下错误

X509Certificate2 Clnt=新的X509Certificate2 HttpContext.Current.Request.ClientCertificate.Certificate

错误是 System.Web.Services.Protocols.SoapException:服务器无法处理请求。-->System.Security.Cryptography.CryptographyException:m_safeCertContext是无效句柄。 位于System.Security.Cryptography.X509Certificates.X509Certificate.get_Issuer 在c:\MyWorkSpace\SecuredWS\App\u Code\Service.cs中的Service.HelloWorld处:第40行 -内部异常堆栈跟踪的结束

有人能解释一下为什么我把m_safeCertContext设为null吗


雷格斯最后,我们解决了这个问题。如果有人有兴趣知道,我可以在这里发布解决方案。

请发布您的解决方案以帮助像我这样的其他人:您可以发布您的解决方案吗?