我已經提供了wcf服務url,私有和公共證書來使用它。帶證書認證的WCF服務參考
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.
我有證書安裝在個人,受信任的人,受信任的publishers文件夾下。我無法訪問服務器來檢查服務器配置。但是我被告知這是爲不同的客戶服務的。我相信我搞亂了證書的安裝。如果有人能指引我走向正確的方向,那將會很棒。
感謝,
也先
感謝我展示的路徑找到問題。跟蹤幫助我們找出服務器中的問題。問題是證書未安裝在可信文件夾中。 – Esen