我在项目中添加了 wcf 服务参考,并且我也在我的电脑上安装了证书。
当我通过端口(localhost:3353/wcfproj/add.aspx)使用 wcf 方法时,它运行良好,但是当我将它托管在我的 iis 上并使用该方法时,它给出了以下错误
“请求被中止:无法创建 SSL/TLS 安全通道。”
s.ClientCredentials.ClientCertificate.SetCertificate(StoreLocation.LocalMachine, StoreName.My, X509FindType.FindByThumbprint, "1e fb 2c a7 75 be b7 18 e5 c5 1d 14 4f 87 2c 77 15 70 cf 57");
提前致谢