請幫助我的人, 當調用第三方Web服務,它表明:請求已中止:無法創建SSL/TLS安全通道的.Net 4.5.2
Initializing
Generating WSDL
System.InvalidOperationException: General Error https://xxx ---> System.Net.WebException: There was an error downloading 'https:/xxx'. ---> System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Discovery.DiscoveryClientProtocol.Download(String& url, String& contentType)
--- End of inner exception stack trace ---
at System.Web.Services.Discovery.DiscoveryClientProtocol.Download(String& url, String& contentType)
at System.Web.Services.Discovery.DiscoveryClientProtocol.DiscoverAny(String url)
at WebServiceStudio.Wsdl.ProcessRemoteUrls(DiscoveryClientProtocol client, StringCollection urls, XmlSchemas schemas, ServiceDescriptionCollection descriptions)
--- End of inner exception stack trace ---
at WebServiceStudio.Wsdl.ProcessRemoteUrls(DiscoveryClientProtocol client, StringCollection urls, XmlSchemas schemas, ServiceDescriptionCollection descriptions)
at WebServiceStudio.Wsdl.Generate()
我已經嘗試使用X509證書,給予用戶全部權限。
1)檢查事件日誌。 2)你可以在瀏覽器中訪問端點嗎? – Ben
我無法訪問端點,因爲無法從瀏覽器(https)訪問web服務。我該怎麼辦 ? –
如果端點根本無法訪問*這不是一個編程問題。與供應商交談:服務是否已啓動?你有沒有正確的網址?與您的網絡管理員聯繫。防火牆是否阻止了它? – Ben