title: VB. NET: The request was aborted: Could not create SSL/TLS secure channel
body: <p>I have an application coded in VB.net that has this method of accessing Webservice, i have this error and after searching fixes i still have no luck.</p>
  
  <p>Error:
  The request was aborted: Could not create SSL/TLS secure channel.</p>
  
  <pre><code>    'ServicePointManager.Expect100Continue = False
      'ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
  
      Dim request As HttpWebRequest = DirectCast(WebRequest.Create(url), HttpWebRequest)
  
      Dim ErrMsg As String = String.Empty
  
      Try
  
          Dim response As WebResponse = request.GetResponse()
  
          Using responseStream As Stream = response.GetResponseStream()
              Dim reader As New StreamReader(responseStream, Encoding.UTF8)
  
              Return reader.ReadToEnd()
          End Using
      Catch ex As WebException
  
          ErrMsg = ex.Message.ToString
          MsgBox(ErrMsg)
  
          Dim errorResponse As WebResponse = ex.Response
          Using responseStream As Stream = errorResponse.GetResponseStream()
              Dim reader As New StreamReader(responseStream, Encoding.GetEncoding("utf-8"))
              ' log errorText
              Dim errorText As [String] = reader.ReadToEnd()
          End Using
          Throw
      End Try
  </code></pre>
  
  <p>This is my code and I'm using VS2015 and Windows 10.</p>
  
  <p>All help are really appreciated. TIA</p>