gpt4 book ai didi

c# - 具有证书身份验证的 WCF 服务引用

转载 作者:太空宇宙 更新时间:2023-11-03 13:55:48 25 4
gpt4 key购买 nike

我已经获得了一个 wcf 服务 url、私有(private)和公共(public)证书来使用它。

My url is https:/xxxx.com/xxxx/xxxx.svc
my private certificate is xxx.pfx
my public certificate is xxxx.cer

当我尝试从我的客户端应用程序添加服务引用时,它会抛出以下错误。

There was an error downloading 
'https://xxxx.com/xxxx/xxxx.svc'.
The underlying connection was closed:
An unexpected error occurred on a receive.
Unable to read data from the transport connection:
An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
Metadata contains a reference that cannot be resolved:
'https://xxxx.com/xxxx/xxxx.svc'.
An error occurred while receiving the HTTP response to
https://xxxx.com/xxxx/xxxx.svc.
This could be due to the service endpoint binding not using the HTTP protocol.
This could also be due to an HTTP request context being aborted by the server
(possibly due to the service shutting down).
See server logs for more details.
The underlying connection was closed: An unexpected error occurred on a receive.
Unable to read data from the transport connection:
An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
If the service is defined in the current solution,
try building the solution and adding the service reference again.

我将证书安装在 personal、trusted people、trusted publishers 文件夹下。我无权访问服务器以检查服务器配置。但有人告诉我,这适用于不同的客户。我确定我搞砸了证书的安装。如果有人能指出我正确的方向,那就太好了。

谢谢,

亦森

最佳答案

您必须启用跟踪才能查看服务器上发生了什么。您发布的错误消息更通用。

http://msdn.microsoft.com/en-us/library/ff648360.aspxhttp://msdn.microsoft.com/en-us/library/ms733025.aspx

关于c# - 具有证书身份验证的 WCF 服务引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12219522/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com