title: System.Net.WebException exception - "The request was aborted. Could not create SSL/TLS secure channel"
body: <p>I saw a lot of answers but it didn't work!!!!!
  Here is my code:</p>
  
  <pre><code>  List&lt;KeyValuePair&lt;string, string&gt;&gt; lstItemsIndexC = new List&lt;KeyValuePair&lt;string, string&gt;&gt;();
  
      XmlDocument xmlDoc = new XmlDocument();
  
      ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback(AcceptAllCertifications);
  
      xmlDoc.Load("https://apps.myexponet.com/apps/aspnet/budget/js/indices_heb.xml");
  </code></pre>
  
  <p>I get the following exception :</p>
  
  <blockquote>
    <p>The request was aborted: Could not create SSL/TLS secure channel.</p>
    
    <p>Description: An unhandled exception occurred during the execution of
    the current web request. Please review the stack trace for more
    information about the error and where it originated in the code. </p>
    
    <p>Exception Details: System.Net.WebException: The request was aborted:
    Could not create SSL/TLS secure channel.</p>
    
    <p>Source Error:</p>
    
    <p>Line 31:<br>
    ServicePointManager.ServerCertificateValidationCallback = new
    System.Net.Security.RemoteCertificateValidationCallback(AcceptAllCertifications);
    Line 32:         Line 33:<br>
    xmlDoc.Load("<a href="https://apps.myexponet.com/apps/aspnet/budget/js/indices_heb.xml" rel="nofollow noreferrer">https://apps.myexponet.com/apps/aspnet/budget/js/indices_heb.xml</a>");
    Line 34:  Line 35:         XmlNodeList MList =
    xmlDoc.SelectNodes("/indices/date");</p>
  </blockquote>
  
  <p>Can someone please help me?
  I saw a lot of answers, but it didn't really work!
  Thanks!</p>