调用地址解析API时发生通信错误

时间:2018-12-28 11:31:52

标签: google-geocoder

12月9日,我在调用Google Geocode API时开始收到以下错误消息。

The underlying connection was closed: An unexpected error occurred on a receive. ---> System.ComponentModel.Win32Exception: The client and server cannot communicate, because they do not possess a common algorithm at System.Net.SSPIWrapper.AcquireCredentialsHandle

我正在使用Visual Studio 2010和.Net Framework 4,想知道是否不再支持安全协议。通过IDE可用的唯一安全协议是SSL3和TLS。有没有办法将当前的安全协议添加到VS 2010?

Dim url As String = "http://maps.googleapis.com/maps/api/geocode/xml?address=" & Replace(AddressIn, " ", "+") & "&sensor=false&key=" & GoogleAPIKey

Dim request As HttpWebRequest = HttpWebRequest.Create(url)
request.KeepAlive = True
Dim response As HttpWebResponse = request.GetResponse

0 个答案:

没有答案