2011-04-06 87 views
1

使用x509證書對客戶端進行身份驗證時,我在Web服務中遇到以下錯誤。Web服務和X509

X509Certificate2 Clnt = new X509Certificate2(HttpContext.Current.Request.ClientCertificate.Certificate);

錯誤是 System.Web.Services.Protocols.SoapException:服務器無法處理請求。 ---> System.Security.Cryptography.CryptographicException:m_safeCertContext是一個無效的句柄。 在System.Security.Cryptography.X509Certificates.X509Certificate.get_Issuer() 在Service.HelloWorld(c)中:\ MyWorkSpace \ SecuredWS \ App_Code文件\ Service.cs:管線40 ---內部異常堆棧跟蹤結束

任何人都可以把它作爲爲什麼我m_safeCertContext爲null爲什麼。

Regars

回答

-2

最後,我們解決了這個問題。如果有人想知道我可以在這裏解決。

+1

請張貼您的解決方案以幫助他人(如我):) – Seph 2011-05-09 06:55:50

+0

您可以發佈您的解決方案嗎? – 2011-10-25 18:54:10